2

Here a sample of my code:

<ul> <li>{{model}} : Auris, Auris TS, Yaris</li> </ul>

Right now it displays nothing because there's no data for {{model}} and I would like to display the string "{{model}}" instead of the content.

Is it possible ?

4
  • stackoverflow.com/questions/16523076/… Commented Jun 12, 2015 at 8:47
  • how about more information ? maybe a jsfiddle ? Commented Jun 12, 2015 at 8:48
  • Does a fiddle is really usefull ? Commented Jun 12, 2015 at 8:48
  • Not sure if he wants a directive or template, there is some difference. but I think @alex anwser should be sufficient. You could also just go with HTML special characters <p> Lorem ipsum &#123; &#123; model &#125; &#125; </p> Commented Jun 12, 2015 at 8:51

1 Answer 1

4

Use this:

<code ng-non-bindable>{{model}}</code>
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.