As I was going through the documentation for the bindonce directive, a question popped into my head regarding the distinction between bo-html
and bo-text
.
bo-html
:
This evaluates "markup" and displays it as HTML within the element.
bo-text
:
This evaluates "text" and outputs it as plain text inside the element.
Therefore, I assumed that this code would function properly:
<span bo-html="<strong>SomeText</strong>"></span>
However, what I received was an error message:
Error: [$parse:syntax] Syntax Error: Token '<' not a primary expression at column 1 of the expression
Isn't <strong>
just basic markup?
If this approach doesn't work (possibly due to a syntax issue...), could someone clarify the actual difference between bo-text
and bo-html
?