I have a button in HTML:
<button> </button>
How can I make the change inside change depending on the value of a $scope variable?
$scope.action == Action.Authenticating
I would like it to say "Sign in" when this is false and "Signing in..." when it is true.
You can use the ternary operator inside a binding:
<button>{{action === "someValue" ? "Primary" : "Alternate"}}</button>
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments