3

Is it possible to do one-time-binding with html ng-bind-html directive?

For instance, i have:

<span>{{::helpText}}</span>

but my helpText is a html string so I have to do:

<span ng-bind-html="helpText"></span> which does 2-way-binding.

1
  • Not really clear what your issue is Commented Mar 10, 2015 at 14:35

1 Answer 1

4
<span ng-bind-html="::helpText"></span> 

should do the job.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.