Shouldn't Ng-bind Work For Input As Well?
I was a bit puzzled by my expression not working. I can't use ng-model there (as the product is no L-value), so I blindly
ngBind
set's the element's text content:
element.text(value == undefined ? '' : value); // from the source code of Angular
So, it does not work for setting the value of an input (nor shouldn't it).
I believe it is better to use <span>
in place of readonly inputs.
Post a Comment for "Shouldn't Ng-bind Work For Input As Well?"