visit
The answer is Yes. But How?
This article is all about setting/updating different titles and meta tags along with all pages.
To set different “Title” on the page(head section)
import { Title} from '@angular/platform-browser';
public constructor(private titleService: Title) { }ngOnInit() {
this.titleService.setTitle("your page title");
}
import { Meta} from '@angular/platform-browser';
public constructor(private metaService: Meta) { }
Add New Meta Tags
ngOnInit() {
this.metaService.addTags([
{name: 'keywords', content: 'your keywords content'},
{name: 'description', content: 'your page description content'},
]);
}
Update Meta Tag
ngOnInit() {
this.metaService.updateTag({ name: 'keywords', content: 'your updated keywords content'});
}
Remove Meta Tag
ngOnInit() {
this.metaService.removeTag({ name: 'keywords', content: 'your updated keywords content'});
}