AngularJS toggle button

前端 未结 6 1139
不知归路
不知归路 2021-02-01 03:41

I am trying to create a toggle button in Angular. What I have so far is:


      
6条回答
  •  梦毁少年i
    2021-02-01 04:21

    This is the simplest answer I've found. I haven't tried it with animations because I just use it for quick setup.

    toggle
    
    
    show stuff

    with scopeVar=scopeVar!=true undefined becomes true.

提交回复
热议问题