Sunday, 15 July 2012

javascript - How to display tags in plain htm inside ng-app of angular js -


I am new to angular JS. How do I want to show the tags (or instructions, expressions etc.) written in my HTML (Present inside ng-app).

For example

  & lt; Div ng-app = "myExampleApp" & gt; & Lt; Input type = "text" ng-model = "first name" /> {{First name}} & lt; / Div & gt;  

Now the text box HTM should be shown this way. (Instead of providing a text box). Please let me know how to avoid them

There is a way & amp; LT and & gt; And to use this kind of way but to prevent expression from getting an evaluation about the NG-model and how to get it evaluated.

NG-non-bindable directors will do so! :)

e.g.

  & lt; Div ng-app = "myExampleApp" & gt; & Lt; Input type = "text" ng-model = "first name" /> & Lt; Label ng-non-bindable = "" & gt; {{Firstname}} & lt; / Labels & gt; & Lt; / Div & gt;  

No comments:

Post a Comment