Hi Andrew, It sounds like what you might want to wrap that pause/play glyphicon in a div with ng-if. ng-if has a pretty simple syntax. It could be something like: <div ng-if="playing">PauseSymbol</div> <div ng-if="paused">PlaySymbol</div>
And just define "playing" and "paused" in your JavaScript. Best, Rene On Thursday, February 6, 2014 3:46:40 PM UTC-5, Andrew Novak wrote: > > I'm building an html5 audio player I want the play button to be one button > that when clicked turns into a pause button instead of there being two > buttons. And I can't figure out how to toggle between the play and pause > button with the glyphicons using a angularUI button. > The Website: http://test.shibagames.com > > > > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
