Binding ng-show to a select option in AngularJS

后端 未结 1 1571
甜味超标
甜味超标 2021-02-01 14:56

It\'s fairly straightforward. You can easily give show/hide functionality to pretty much any element using ng-show=\"myModelName\". In the official documentation th

1条回答
  •  醉话见心
    2021-02-01 15:53

    You were close you will want to use == here like this:

    
    

    See this fiddle for an example.

    0 讨论(0)
提交回复
热议问题