Binding ng-show to a select option in AngularJS

后端 未结 1 1597
甜味超标
甜味超标 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:

    <input ng-show="myDropDown=='two'" type="text">
    

    See this fiddle for an example.

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