Hide Value in input when it's zero in angular Js

后端 未结 7 2077
北恋
北恋 2020-12-19 15:56

I have an angular object item.add_value = 0 bind into the



        
7条回答
  •  误落风尘
    2020-12-19 16:40

    You could use ng-show or ng-hide depending on how you want the semantics.

    I would recommend ng-hide, because its more intuitive and semantic in my opinion:

     
    

    but you could use:

    ng-show:

     
    

提交回复
热议问题