Answer the question
In order to leave comments, you need to log in
Displaying html tag in angular expression?
There is a code:
<td>{{allTags[task.tag] || "ID \""+task.tag+"\" не найден в доступных тегах"}}</td>
<td>{{allTags[task.tag] || "<b>ID \""+task.tag+"\" не найден в доступных тегах</b>"}}</td>
Answer the question
In order to leave comments, you need to log in
You cannot create child elements inside a "physical" text node.
You can do this:
<td>
{{allTags[task.tag]}}
<b ng-if"!allTags[task.tag]">ID {{task.tag}} не найден в доступных тегах</b>
</td>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question