Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@adityatyagi
Created December 17, 2019 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adityatyagi/b841baf88bea390270f7c6ee4ee5f17b to your computer and use it in GitHub Desktop.
Save adityatyagi/b841baf88bea390270f7c6ee4ee5f17b to your computer and use it in GitHub Desktop.
import { Component, OnInit } from "@angular/core";
// importing service
import { Meta, Title } from "@angular/platform-browser";
@Component({
selector: "app-about-us",
templateUrl: "./about-us.component.html",
styleUrls: ["./about-us.component.scss"]
})
export class AboutUsComponent implements OnInit {
constructor(private _meta: Meta, private _title: Title) {
this._meta.updateTag({ name: "author", content: "Aditya Tyagi" });
this._meta.updateTag({
name: "description",
content:
"Aditya Tyagi is trying his best to describe himself in this description"
});
this._meta.updateTag({
name: "keywords",
content: "About Aditya Tyagi, Meta Service, SEO, Angular"
});
// adding title
this._title.setTitle("About Us | Scalable Angular App");
}
ngOnInit() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment