Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ng-helmet
Advanced tools
Readme
Angular Helmet is a simple and intuitive document head manager for Angular applications. Inspired by React Helmet.
npm:
npm install --save ng-helmet
Yarn:
yarn add ng-helmet
Version | Angular Version |
---|---|
1.x.x | >=9 <13 |
2.x.x | >=13 <15 |
title
and meta
.Import the NgHelmetModule
into your AppModule
to access the ng-helmet
component in your components. This module can be optionally configured with the forRoot
method:
import { NgHelmetModule } from "ng-helmet";
@NgModule({
imports: [
NgHelmetModule.forRoot({
baseTitle: "| Replay Value",
}),
],
})
export class AppModule {}
The supported configuration parameters are:
Property | Requirement | Description |
---|---|---|
baseTitle | Optional | An optional fixed portion of the browser title, usually the website name. |
In a component template:
<div class="application">
<ng-helmet>
<title>My Title</title>
<meta charset="utf-8" />
</ng-helmet>
...
</div>
Nested or latter components will override duplicate changes, and meta
elements without a content
attribute will be removed for the document head:
<div class="parent">
<ng-helmet>
<title>My Title</title>
<meta name="description" content="NgHelmet application" />
<meta name="some-property" content="some-value" />
</ng-helmet>
<div class="child">
<ng-helmet>
<title>Nested Title</title>
<meta name="description" content="Nested component" />
<meta name="some-property" />
</ng-helmet>
</div>
</div>
outputs:
<head>
<title>Nested Title</title>
<meta name="description" content="Nested component" />
</head>
MIT
FAQs
A document head manager for Angular
The npm package ng-helmet receives a total of 482 weekly downloads. As such, ng-helmet popularity was classified as not popular.
We found that ng-helmet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.