Angular Directives Not Working Under FormattedString Span Tag
See original GitHub issueFor Some reason Angular Ng Directives are not working Following is a code sample:
<Button dock="top" class="btn btn-primary btn-rounded-lg" style="margin: 5;">
<FormattedString>
<Span text="Question {{state.questionNumber}}"></Span>
<Span *ngIf="isPracticeMode()" text=" of {{state.totalQuestions}}">
</Span>
</FormattedString>
</Button>
When you toggle between items where isPractiveMode gives you true and false then the Formatted String becomes longer and longer. Please find the image attached.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Angular Directives Not Working Under FormattedString Span Tag
For Some reason Angular Ng Directives are not working. Following is a code sample: <Button dock="top" class="btn btn-primary btn-rounded-lg" style="margin: ...
Read more >angular4 directive not working inside HTML SPAN tag
I have written a directive in angular4, which works on input fields. When I apply that on SPAN tag, it is not working....
Read more >FormattedString - NativeScript Docs
FormattedString is a special class, which provides a support various text transformations and decorations. This class can be used in all text-related ...
Read more >date - AngularJS: API
Formatted string or the input if input is not recognized as date/millis. Example. Edit in Plunker. index.html protractor.js. <span ...
Read more >Style for Label.FormattedString.Span broke...
I could not select a Span in the TargetType so I had to select Label. The problem showed itself by not opening the...
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
@rakeshgirase I’d suggest you creating FormattedString in component and bind it to the Label. Example:
<Label *ngIf="formattedString" textWrap="true" [formattedText]="formattedString"></Label>
@tsonevn This is still not working, should I create a new issue for this?