Created
December 17, 2019 17:43
-
-
Save adityatyagi/e28cc9c4c0567574d2b6147759dd9309 to your computer and use it in GitHub Desktop.
This file contains 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, OnInit } from "@angular/core"; | |
// importing service | |
import { Meta } from "@angular/platform-browser"; | |
@Component({ | |
selector: "app-landing", | |
templateUrl: "./landing.component.html", | |
styleUrls: ["./landing.component.scss"] | |
}) | |
export class LandingComponent implements OnInit { | |
// injecting service | |
constructor(private _meta: Meta) { | |
this._meta.addTags([ | |
{ name: "author", content: "Aditya Tyagi" }, | |
{ name: "description", content: "SEO friendly Angular Application" }, | |
{ name: "keywords", content: "Angular, Meta Service, SEO" } | |
]); | |
} | |
ngOnInit() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment