For some reason using the code below, ngRepeat only animates the first item and displays the rest instantly. As soon as the scope.categories
item is updated the ng-repeat is triggered in the template.
dataSource.getCategories()
.then(function(categories) {
$scope.categories = categories;
}, function(message) {
dataSource.setActivity(false, message);
});
But if I change the code to the one below and add <a ng-click="start()">Start</a>
in the page, it works. Yes, I have tried $timeout, even up to 5 seconds and it does not change the situation.
dataSource.getCategories()
.then(function(categories) {
$scope.start = function() {
$scope.categories = categories;
}
}, function(message) {
dataSource.setActivity(false, message);
});
Does anyone have a solution to this?