Reputation: 107
I am working on audio player in angularjs. I have customized the player according to the requirements but stuck with the mute button. In the demo link for demo
you will see a mute toggle button whose value is changing from true to false and vice versa when in toggles. I want to change the value from mute to muted and then again to mute. I have to make changes in main js file but getting confused.
How can I do that?
Thanks.
Upvotes: 0
Views: 93
Reputation: 6014
You could do something like this:
<button>{isMuted ? "Muted" : "Mute"}</button>
isMuted
is your boolean flag which indicates if its muted or not.
Upvotes: 1