angular.js
angular.js copied to clipboard
Incorrect priority of operator | in assignment expression
We have to use <div ng-init="str2=('HELLO'|lowercase)"></div> insted of <div ng-init="str1='HELLO'|lowercase"></div>
Example http://plnkr.co/edit/io8ylf?p=preview
Actually that is the correct priority. Filter is the last thing to be evaluated, and it is not ment to be used in this way. putting behavior in HTML is not advised.