Can I use ng-model with & lt; P & gt; Mark?

advertisements

I am new to angular-js and i think this is a basic question how to get the value from a paragraph tag in angular-js? I tried with using ng-model but doesn't giving the value.Can anyone help me?


ng-model is working for two way binding. p tag is not supported for ng-model. if you want to bind p tag then you can use ng-bind or {{}}.

<p ng-bind="test"></p>

plunker code here with ng-bind