Created
December 17, 2019 18:19
-
-
Save adityatyagi/47324ba6f808a0e3731fcfcc2603a5c8 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"; | |
import { Meta, Title } from "@angular/platform-browser"; | |
@Component({ | |
selector: "app-contact-us", | |
templateUrl: "./contact-us.component.html", | |
styleUrls: ["./contact-us.component.scss"] | |
}) | |
export class ContactUsComponent implements OnInit { | |
constructor(private _meta: Meta, private _title: Title) { | |
this._meta.addTags([ | |
{ name: "author", content: "Aditya Tyagi" }, | |
{ | |
name: "description", | |
content: "Reach out to Aditya via adityatyagi.com" | |
}, | |
{ | |
name: "keywords", | |
content: "Contact Aditya Tyagi, Meta Service, SEO, Angular" | |
} | |
]); | |
// adding title | |
this._title.setTitle("Contact Us | Scalable Angular App"); | |
} | |
ngOnInit() {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment