-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
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
No progress happening #3
Comments
Hey Joel, You should return promise from the callback function. In your case this would probably be: $scope.change = function() {
$scope.loader = NodeFactory.update({ id: $scope.newentry.nid }, $scope.data);
return $scope.loader.$promise.then(function () {
//$state.go('start', {'id': $scope.newentry.nid});
});
}; Note the Best, |
How do you normally handle using it on a form since ng-submit handles disabling the page reload and usually contains the function associated with the promise you're return. Just git rid of ng-submit? |
Well, this plugin initially wasn't intended for the use with ngSubmit. Technically you can do it, but this would probably be a hack rather than proper usage. For example, you could create separate callback for progressButton, that will create promise object, that will be saved to some scope property. Later this promise can be resolved inside of ngSubmit's callback. But this all feels weird for me. If you have no valuable reasons to have |
I followed the instructions of md file, but I couldn't get any animation of the example page |
@fpernia Could you please share your code with us? |
Button doens't fill when I hook it into my service. Currently using:
With my button set as:
The server is taking about 10sec to resolve the promise, the button doesnt fill and simply flips to the done animation.
The text was updated successfully, but these errors were encountered: