P
P
pontiac3582015-07-26 17:07:56
Angular
pontiac358, 2015-07-26 17:07:56

Why is the function in ng-change not working?

there is a checkbox
if by default I do ng-checked="true" then the sync() function does not work the first time, it only works when the bird is removed and put back

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2015-07-26
@pontiac358

Потому что вы передаете константу. Используйте модель для того, чтобы автоматически назначить watcher.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question