I want to do so:
ng-hide="!globals.isAdmin && mapping.is_default"
but the expression evaluates always to false.
false
I do not want to define special function on $scope.
$scope
Use a controller method if you need to run arbitrary JavaScript code, or you could define a filter that returned true or false.
I just tested (should have done that first), and something like ng-show="!a && b" worked as expected.
ng-show="!a && b"
1.4m articles
1.4m replys
5 comments
57.0k users