You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make ngShow and ngHide follow javascript `truthy`/`falsy` logic and
not the custom toBoolean logic
Fixesangular#5414angular#4277angular#3969
BREAKING CHANGE: The expressions
* `<div ng-hide="[]">X</div>`
* `<div ng-hide="'f'">X</div>`
* `<div ng-hide="'[]'">X</div>`
used to be evaluated to `false` and the elements were hidden.
The same effect is present for `ng-show` and the elements are now
visible; and with `ng-if` and the elements are now removed
If you were previously doing `ng-show="exp"` where
`$scope.exp = 'no' // (or 'n' or 'f')`, then instead write
`ng-show="exp && exp !== 'no'` (or 'n' or 'f').
0 commit comments