$scope.items = $http.get(config.base + '/humanized/angular_data').success();
I want to get data in controller and put it in $scope.items but I can't do that.
$scope.items = $http.get(config.base + '/humanized/angular_data').success();
I want to get data in controller and put it in $scope.items but I can't do that.
In older versions of angular you were able to directly assign promises to $scope, which would manage the resolve process. This has been turned off in the current version, with a complete removal planned. To perform what you need, $scope.items should be assigned inside a resolved callback (eg: .success(function(results){ /* assign here */}))