I am using button spinner while loading the content, when the user clicks on the \"Search\" button content will load, at this time buttonLabel will be changed t
buttonLabel
{{ searchButtonText }} All you need to do is use ng-show or ng-hide directives. ng-show="expression" this span will only be visible when searchButtonText will be equal to a string 'Searching'. You should learn more about angular's directives. They'll be useful in future. Good luck. Demo http://jsfiddle.net/xc6nx235/16/ 0 讨论(0) 查看其它7个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
All you need to do is use ng-show or ng-hide directives.
ng-show
ng-hide
ng-show="expression"
this span will only be visible when searchButtonText will be equal to a string 'Searching'.
searchButtonText
You should learn more about angular's directives. They'll be useful in future.
Good luck.
Demo http://jsfiddle.net/xc6nx235/16/