Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { Component, OnInit } from "@angular/core";
import { Meta, Title } from "@angular/platform-browser";
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) {
{ name: "author", content: "Aditya Tyagi" },
name: "description",
content: "Reach out to Aditya via"
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