We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/angular-ui/ui-router/wiki#resolve
this example:
promiseObj: function($http){ // $http returns a promise for the url data return $http({method: 'GET', url: '/someUrl'}); },
When used at the bottom, I believe it should be:
$scope.items = promiseObj.data.items;
to reflect #77.
On the other hand, would it be feasible to have ui-router run angular $http's .success if it exists instead of .then ?
ui-router
$http
.success
.then
I find myself having to do this:
promiseObj: function($http){ // $http returns a promise for the url data return $http({method: 'GET', url: '/someUrl'}) .then(function(res) { return res.data; }); },
all the time.
The text was updated successfully, but these errors were encountered:
that seems valid. in your controller you would have:
promiseObj.then(function(response) { $scope.items = response.data.items; });
Sorry, something went wrong.
Right, the documentation shows
$scope.items = response.items;
right now.
Updated. Its a wiki just so you know.
Ah, thanks. Haven't contributed much to open source, didn't want to mess anything up ;p
No branches or pull requests
https://github.com/angular-ui/ui-router/wiki#resolve
this example:
When used at the bottom, I believe it should be:
to reflect #77.
On the other hand, would it be feasible to have
ui-router
run angular$http
's.success
if it exists instead of.then
?I find myself having to do this:
all the time.
The text was updated successfully, but these errors were encountered: