简体   繁体   English

带有商标符号的标题和 Angular 标题服务

[英]title with trademark symbol with Angular title service

I need to set page title with trademark sysmbols (TM) in angular 11 application dynamically.我需要在 Angular 11 应用程序中动态设置带有商标符号 (TM) 的页面标题。 if I use AppName™如果我使用AppName™ in html title tage, it is working fine but if I use Angular provided title service in component constructor, it is not working.在 html 标题标签中,它工作正常,但如果我在组件构造函数中使用 Angular 提供的标题服务,它就不起作用。 showing the complete text as it is ' AppName™显示完整的文本,因为它是 ' AppName™ '. '。 I want to show 'AppName™' as title.我想将“AppName™”显示为标题。

Below is the reference for Angular code -以下是 Angular 代码的参考 -

titleService.setTitle('AppName™');

https://angular.io/guide/set-document-title https://angular.io/guide/set-document-title

can anyone let me know how we can use ™ ™谁能让我知道我们如何使用™ ™ using Angular title service.使用 Angular 标题服务。

Thanks谢谢

["

You need to use Unicode characters to get the Trademark symbol ™ \™<\/code> .<\/i>您需要使用 Unicode 字符来获取商标符号 ™ \™<\/code> 。<\/b> I added the stackblitz<\/a> for the same for your reference.<\/i>我添加了stackblitz<\/a>以供您参考。<\/b><\/p>

Refer to this link<\/a> to find Unicode for other special symbols<\/i>请参阅此链接<\/a>以查找其他特殊符号的 Unicode<\/b><\/p>"]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM