html
<div ng-repeat="item in timesheets">{{item.week}}</div>
script
.controller('TimesheetMainCtrl', function ($rootScope, $scope, $window) {
dpd.timesheetold.get(function (result, err) {
if (err) return console.log(err);
$scope.timesheets = result;
console.log($scope.timesheets);
})
});
timesheets loads from a rest api, but it seams like ng-repeat dosen't wait for the scope.
if i set timesheets to a value, ng repeat runs it.
so how do i tell ng-repeat to wait for scope to be loaded ?