Angularjs directive to replace text

前端 未结 6 659
陌清茗
陌清茗 2020-12-04 18:05

How would I create a directive in angularjs that for example takes this element:

Example text http://example.com

And

6条回答
  •  無奈伤痛
    2020-12-04 18:48

    I wanted a pause button that swaps text. here is how I did it:

    in CSS:

    .playpause.paused .pause, .playpause .play { display:none; }
    .playpause.paused .play { display:inline; }
    

    in template:

    
    

提交回复
热议问题