Check out example codes for "angular typescript set meta data". It will help you in understanding the concepts better.

Code Example 1

export class HomeComponent {
 constructor(private meta: Meta) {
    this.meta.addTag({ name: 'description', content: 'How to use Angular 4 meta service' });
    this.meta.addTag({ name: 'author', content: 'talkingdotnet' });
    this.meta.addTag({ name: 'keywords', content: 'Angular, Meta Service' });
  }
}

Learn ReactJs, React Native from akashmittal.com