Angular has introduced a new service called the Meta service that simplifies updating or getting the meta tags:
@Component({ selector: 'book-list', template: `<h1>Book List</h1>` }) export class BookComponent { constructor(meta: Meta) { meta.addTag({ name: 'author', content: 'Rajesh Gunasundaram' }); } }