My promise seem to not be resolving when I try to pass it directly to my view, It works when I go through the .then method.
Example here http://jsbin.com/oworucAL/1/edit
My promise seem to not be resolving when I try to pass it directly to my view, It works when I go through the .then method.
Example here http://jsbin.com/oworucAL/1/edit
GetData return a promise, and you must manage it.
app.controller('RepeatController', function ($scope, DataFactory) {
DataFactory.getData().then( function(data){
$scope.weeks = data; },
function (){});
}) ;