Skip to content

Instantly share code, notes, and snippets.

@talkingdotnet
Created December 4, 2017 06:26
Show Gist options
  • Save talkingdotnet/f19b4b985177703015d6566ec3e605c1 to your computer and use it in GitHub Desktop.
Save talkingdotnet/f19b4b985177703015d6566ec3e605c1 to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import { Meta } from '@angular/platform-browser';
@Component({
selector: 'my-app',
templateUrl: './home.html',
})
export class HomeComponent {
constructor(private meta: Meta) {
this.meta.addTags([
{name: 'description', content: 'How to use Angular 4 meta service'},
{name: 'author', content: 'talkingdotnet'},
{name: 'keywords', content: 'Angular, Meta Service'}
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment