📜  角度打字稿集元数据 - 打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:31.778000             🧑  作者: Mango

代码示例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' });
  }
}