Issue
I am trying to display a backslash \
in the component template but it is not get rendered.
//example :
template `
<div>{{'\'}}{{content}}</div>
`
where content is an @Input string
Solution
If it is an inline template, then you need to escape \
as \\
like in any other string.
<div>{{'\\'}}{{content}}</div>
or
<div>\\{{content}}</div>
Answered By - Günter Zöchbauer
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.