-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bhSubmit checks for promises (#442)
This commit implements the suggestions proposed in #431. The `bhSubmit` directive responsible for toggle the form's $loading state now supports inputs other than Promises. If the input is not a promise, the form immediately cancels the $loading state. Otherwise, the $loading state is toggled off on resolution of the Promise. Closes #431.
- Loading branch information
Showing
2 changed files
with
61 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters