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
Solution 1:
ngBind
set's the element's text content:
element.text(value == undefined ? '' : value);
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?"