Answer the question
In order to leave comments, you need to log in
Why doesn't AngularJs render the list given by $resource?
There is a test directive that renders a list using ng-repeat
filterApp.directive('test', function(){
return {
restrict: 'E',
//require: '^ngModel',
scope: {
items: '='
},
template: "<select><option ng-repeat='item in items'>{{item.name}}</option></select>",
link: function($scope, $element, $attrs) {
}
}
})
<test items="countryItems"></test>
$scope.countryItems = Countries.query();
$scope.$watch('items', function(v) {
console.log(v);
}, true);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question