<ion-title> does not render "toolbar-title" when [innerHTML] is specified
See original GitHub issueTypical behaviour (Beta 11):
<ion-title>{{ mytitle }}</ion-title>
will output:
<ion-title><div class="toolbar-title">My Ttile</div></ion-title>
But when using:
<ion-title [innerHtml]="myTitle"></ion-title>
The inner DIV “toolbar-title” is not rendered.
Workaround:
<ion-title><div class="toolbar-title" [innerHtml]="myTitle"></div></ion-title>
This ends up generating:
<ion-title><div class="toolbar-title"><div class="toolbar-title">My Title</div></div></ion-title>
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
<ion-title> does not render "toolbar-title" when [innerHTML] is ...
I am trying to set my own title which includes HTML entities, such as & , which is why I need to specify...
Read more >angular2 [innerHTML] not working properly with ionic <ion-list>
I think your problem is related to text-wrap class. I am also facing this problem. here is my code. You can be modified...
Read more >ion-title: Ionic Framework App Title Component for Toolbars
Title is a text component that sets the title for a toolbar. It can be used to describe the screen or section a...
Read more >Patch - Pagure.io
... +++ b/package.json @@ -119,4 +119,4 @@ "android" ] } -} +} \ No newline at ... Fedora</span> + </ion-title> + <ion-searchbar [(ngModel)]="searchQuery" ......
Read more >innerHTML in Javascript - Scaler Topics
innerHTML returns all the elements and their text as well along with the specified spacing, innerText returns only text with no consideration to ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello again. you can do it like this
<ion-title><span [innerHTML]="myTitle"></span></ion-title>
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.