当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript Meta.addTags方法代码示例

本文整理汇总了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.' }
    ]);
  }
开发者ID:rahulsingh0394,项目名称:csquare_ui,代码行数:8,代码来源:careers.component.ts

示例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.' }
		]);
	}
开发者ID:Fermoto5HD,项目名称:SitioPersonal,代码行数:8,代码来源:fm5-website.component.ts

示例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'] }
   ]);
 }
开发者ID:asadsahi,项目名称:AspNetCoreSpa,代码行数:8,代码来源:app.component.ts

示例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.'  }
   ]);
 }
开发者ID:rahulsingh0394,项目名称:csquare_ui,代码行数:10,代码来源:media.component.ts

示例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.' }
		]);
	}
开发者ID:Fermoto5HD,项目名称:SitioPersonal,代码行数:11,代码来源:landing.component.ts

示例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();
    });
开发者ID:DzmitryShylovich,项目名称:angular,代码行数:12,代码来源:meta_spec.ts

示例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' }
   ]);
 }
开发者ID:RIntegerB2B,项目名称:ArifBuyer,代码行数:14,代码来源:seo.service.ts

示例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.'
      },
    ])

  }
开发者ID:rainstormza,项目名称:angular-seo,代码行数:17,代码来源:about.component.ts


注:本文中的@angular/platform-browser.Meta.addTags方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。