A
A
Alexander Belikov2015-12-10 21:03:41
JavaScript
Alexander Belikov, 2015-12-10 21:03:41

How to change ng-click value?

I have deletion of lines in my project, click on the cross, he asks you to delete exactly? well, you confirm there, everything is fine, but when you decide to delete a lot, it becomes difficult, tell me if it is possible to change the value of ng-click, for example, if there is a checkbox "do not ask again"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-12-10
@Alexzzz91

ng-click calls the controller method. He asks the model to do what it needs (it can be just an object or a service). The model does what it needs to and changes the state (or does not change how it goes). Bindings work, the view adapts the current state.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question