64
rated 0 times
[
66]
[
2]
/ answers: 1 / hits: 73856
/ 11 Years ago, wed, january 29, 2014, 12:00:00
What is a simple way to change the text in a button element based on a boolean value?
pseudo code:
<button> some text OR some other text </button>
I read this: Angularjs if-then-else construction in expression
and this regarding ng-switch: http://docs.angularjs.org/api/ng.directive:ngSwitch
Neither seems to work using bool value from model
More From » angularjs