Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个隐藏的 DOM 元素:
<label ng-show="input">Namn</label>
我希望使用ng-click-attribute 更新它们。我应该使用什么表达方式?
ng-click
<!-- some visible element in the same scope --> <div ng-click="input = true">Bla Bla</div> <!-- OR --> <div ng-click="input = !input">Bla Bla</div>