本文整理汇总了TypeScript中@angular/platform-browser.Title类的典型用法代码示例。如果您正苦于以下问题:TypeScript Title类的具体用法?TypeScript Title怎么用?TypeScript Title使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Title类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: setTitle
setTitle(title: string): void {
this.titleService.setTitle(title);
}
示例2: constructor
constructor(private projectService: ProjectService, private alertSerice: AlertService, title: Title) {
title.setTitle('Georg Ludewig - Software Engineer - Projects');
}
示例3:
this.t.getLangInitializedEmitter().subscribe((value) => {
this.titleService.setTitle(this.t._.page.about.title + ' | TidyCards');
})
示例4: it
it('should reset title to empty string if title not provided', () => {
titleService.setTitle(null);
expect(getDOM().getTitle(doc)).toEqual('');
});
示例5: ngOnInit
ngOnInit()
{
this.titleService.setTitle("F.C Uffheim - Partenaires");
}
示例6: setTitle
public setTitle(newTitle: string) {
this.titleService.setTitle(newTitle);
}
示例7: expect
() => { expect(titleService.getTitle()).toEqual(initialTitle); });
示例8: ngOnInit
ngOnInit() {
this.title.setTitle('Products');
this.meta.updateTag({ content: 'Browse products and product categories' }, "name='description'");
}
示例9: ngOnInit
public ngOnInit(): void {
this.titleService.setTitle(this.title);
}
示例10: ngOnInit
ngOnInit(): void {
this.titleService.setTitle('Pastes List');
this.route.params
.switchMap((params: Params) => this.pastesService.getPasteById(params['hashId']))
.subscribe((paste: Paste) => this.paste = paste);
}