So it looks like in the examples you can do this:
App.controller('ProjectListCtrl', ['$scope', 'Restangular', function($scope, Restangular) {
$scope.projects = Restangular.all('project/').getList();
}]);
But that doesn't work for me. When I ng-repeat project in projects and look at the scope, I see:
{
projects: {
then: null
catch: null
finally: null
call: null
get: null
restangularCollection: true
push: null
}
}
Which looks like an un resolved promise object right?
This works fine but is more verbose:
lgtApp.controller('ProjectListCtrl', ['$scope', 'Restangular', function($scope, Restangular) {
Restangular.all('project/').getList().then(function(projects){
$scope.projects = projects;
});
}]);
Did I miss something? This is in the docs:
$scope.owners = house.getList('owners')
Shouldn't matter, but this happens when I'm testing a phonegap app in the Ripple chrome plugin.