I’ve got an ons-button element
<ons-button modifier="large--cta" ng-click="login($event, input.email, input.password)">Log In</ons-button>
And a function (login) that is attempting to use the startSpinner() method of OnsenUI’s ons-button to start a spinner on the button to show the user that the app is working on their request.
I’ve tried the following without success. None of these functions are defined per the console.
How do I go about starting a spinner on the button?
The behavior I want is for the user to tap a button and for the spinner to start (or for the button to disable) so that they know the app is processing their request.
Any advice would be greatly appreciated