Set button value in angularjs
angularjs
Solution
Maybe you are looking something like
<input type="submit" value="{{loading && 'please wait...' || 'start'}}" />
It works like ternary operator.
And if you are using Angular 1.1.5 or above this would work
<input type="submit" value="{{loading ? 'please wait...' : 'start'}}" />
Problem
Button: ``` <input type="submit" value="{loading : 'please wait...', !loading : 'start'}" /> ``` However this does not work. I get the expression as value instead of please wait/start. Is there a built in angular directive to do this?