Created
December 4, 2017 06:44
-
-
Save talkingdotnet/3feeaaf938b626378d3482f047688981 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.addTag({ name: 'description', content: 'How to use Angular 4 meta service' }); | |
this.meta.addTag({ name: 'description', content: 'How to use Angular 4 meta service' },true); | |
this.meta.addTag({ name: 'author', content: 'talkingdotnet' }); | |
this.meta.addTag({ name: 'author', content: 'talkingdotnet' }); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment