
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
angular-browser-meta
Advanced tools
This module sets Meta Tags and Title from the data property of Routers ActivatedRoute.
Updates happen when data or the route changes.
Overrides are possible by injecting the MetaTagService
or TitleService
in components or other
services.
npm i --save angular-browser-meta
import { NgModule, Component } from '@angular/core'
import { TitleModule, MetaTagModule, MetaTagService } from 'angular-browser-meta'
@NgModule({
imports: [
TitleModule.forRoot({ defaultTitle: 'Your App' }),
MetaTagModule.forRoot(),
]
})
export class AppModule {}
@Component({ template: '<router-outlet></router-outlet>' })
export class AppComponent {
constructor(metaTagService: MetaTagService) {
// You can override the data from routes.
// Updates from data resolvers will not reset overrides but navigation will.
metaTagService.set('author', 'Bob');
}
}
const route = {
// If data from a resolver changes tags will be updated.
data: {
title: 'Page Title', // => Title is set to "Page Title | Your App",
meta: {
// Meta tags with name attribute.
name: {
// Values are used to set the content prop on a meta element which should be a string.
keywords: ['Awesome', 'Todo', 'List'].join(',')
},
// Meta tags with property attribute.
property: {
'og:image': 'http://ia.media-imdb.com/images/rock.jpg'
},
// Meta tags with httpEquiv attribute.
httpEquiv: {}
}
}
}
FAQs
Set meta tags and title from resolved router Data.
We found that angular-browser-meta 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.