Hard
Given the following situation:
$scope.items = [{
name : 'item1'
}, {
name : 'item2'
}, {
name : 'item3'
}];
And:
<div ng-repeat="item in items" ng-click="hide = !hide" ng-hide="hide">
{{item.name}}
</div>
I click on "item1", what happens?
Author: Mathieu RobinStatus: PublishedQuestion passed 109 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
1
What is the value of the expression `promise.then(null, function() {})` if `promise` is rejected with an error?1
Add an entry to the browser history1
How to get all the values of an array in AngularJS1
What is the name of the AngularJS class that is used to create a singleton service?1
A way to modify the native behavior of a service1
How to access the parent scope in AngularJS1
What is the output of the following code?
```
var g = $q.defer();
var f = $q.defer();
setTimeout(function(){
g.resolve(1);
}, 1000);
setTimeout(function(){
f.resolve(2);
}, 2000);
console.log(g.then(function(x){
return f.then(function(y){
return x + y;
});
}));
```