M
M
Maxim2014-11-26 17:40:07
JavaScript
Maxim, 2014-11-26 17:40:07

Show/hide block with angular how?

If you write ng-hide="hide" to the desired block, and let's say ng-hide="hide=!hide" to the link, then everything works like that. But I need to split hiding and showing the block into different buttons. How to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2014-11-26
@might

<span ng-click="hide=true">hide</span>
<span ng-click="hide=false">show</span>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question