本文整理汇总了TypeScript中@angular/platform-browser.Meta.addTags方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Meta.addTags方法的具体用法?TypeScript Meta.addTags怎么用?TypeScript Meta.addTags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@angular/platform-browser.Meta
的用法示例。
在下文中一共展示了Meta.addTags方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: constructor
constructor(meta: Meta, title: Title) {
title.setTitle('Careers at CsquareEducation for different Position');
meta.addTags([
{ name: 'author', content: 'www.csquareeducation.com' },
{ name: 'description', content: 'Want a home private tutor job in india or Want a BDA/ sales executive jobs. Check vacancies for available position in CsquareEducation Careers Page.' }
]);
}
示例2: constructor
constructor(meta: Meta, title: Title) {
title.setTitle('Sobre el sitio - Fermoto5HD');
meta.addTags([
{ name: 'author', content: 'Fernando Osorio'},
{ name: 'keywords', content: 'fernando, osorio, portfolio, frontend, buenos aires, argentina'},
{ name: 'description', content: 'No es sólo un portfolio, es un campo de aprendizaje muy interesante. Por este sitio pasaron varios desafíos que derivaron en estas versiones.' }
]);
}
示例3: updateTitleAndMeta
private updateTitleAndMeta() {
this.title.setTitle(this.appService.appData.content['app_title']);
this.meta.addTags([
{ name: 'description', content: this.appService.appData.content['app_description'] },
{ property: 'og:title', content: this.appService.appData.content['app_title'] },
{ property: 'og:description', content: this.appService.appData.content['app_description'] }
]);
}
示例4: constructor
constructor(config: NgbCarouselConfig,private meta: Meta,private title: Title) {
config.interval = 3000;
config.wrap = true;
config.keyboard = false;
this.title.setTitle('CsquareEducation In Media and News');
this.meta.addTags([
{ name: 'author', content: 'www.csquareeducation.com' },
{ name: 'description', content: 'CsquareEducation in media and news for achivements and success. We provide home tuition, private tuition, question paper for CBSE, ICSE, State Boards. We also provide Home tutor jobs.' }
]);
}
示例5: constructor
constructor(
meta: Meta,
title: Title
) {
title.setTitle('0 KM, y con olorcito a nuevo! - Fermoto5HD');
meta.addTags([
{ name: 'author', content: 'Fernando Osorio'},
{ name: 'keywords', content: 'fernando, osorio, portfolio, frontend, buenos aires, argentina'},
{ name: 'description', content: 'Descubrí las mejoras que hice a mi página personal en la sexta versión de desarrollo.' }
]);
}
示例6: it
it('should remove meta tag by the given element', () => {
expect(metaService.getTag('name=keywords')).toBeNull();
metaService.addTags([{name: 'keywords', content: 'meta test'}]);
const meta = metaService.getTag('name=keywords');
expect(meta).not.toBeNull();
metaService.removeTagElement(meta);
expect(metaService.getTag('name=keywords')).toBeNull();
});
示例7: metaTagDescription
metaTagDescription() {
this.meta.addTags([
{ name: 'description', content: 'seller Platform' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'robots', content: 'INDEX, FOLLOW' },
{ name: 'author', content: 'ABCD' },
{ name: 'keywords', content: 'welcome, Test' },
{ name: 'date', content: '2018-06-02', scheme: 'YYYY-MM-DD' },
{ httpEquiv: 'Content-Type', content: 'text/html' },
{ property: 'og:title', content: 'My Text' },
{ property: 'og:type', content: 'website' },
{ charset: 'UTF-8' }
]);
}
示例8: constructor
constructor(meta: Meta, title: Title) {
title.setTitle('My about page');
meta.addTags([
{
name: 'author', content: 'Gary Simon'
},
{
name: 'keywords', content: 'kws'
},
{
name: 'description', content: 'aaaaaaaaaaaaaaaaaaaaaa.'
},
])
}