I am new to angularjs, and while i was exploring ng-bind
, i noticed that it can be used as a directive of textarea
::
<input type="text" ng-model="review.start"/>
<textarea ng-bind="review.start"> </textarea>
Thus the text i wrote in input tag was also reflected in the textarea
field by data binding.
But ng-bind
did not work with input
tag.. I think ng-bind
was not supposed to be used with user inputs. Angular docs are also not shedding much light on this.
So, was it made to work only with textarea in case of user inputs or something else?
Thanks,