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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With