Meta Service 简介
为了让开发者能够方便地操作页面中的 Meta 信息,Angular 为我们提供 Meta 服务。...Meta Service' });
this.meta.addTag({ name: 'keywords', content: 'Angular, RxJS, TypeScript' });...,默认为 false
addTags() {
this.meta.addTags([
{ name: 'description', content: 'Angular Meta Service...' },
{ name: 'keywords', content: 'Angular, RxJS, TypeScript' }
]);
}
在创建完 HTML meta 标签,我们可以通过...Meta Service'
});
this.meta.updateTag({ name: 'keywords', content: 'Node.js, Angular' });
}
除了更新