Answer the question
In order to leave comments, you need to log in
How to call a function or listen for updates via the passed attribute state in a component?
I have for example a component
<div ng-controller="Main">
<component autorequest="true"></component>
<component autorequest="false" autoupdate="true"></component>
..
</div>
Answer the question
In order to leave comments, you need to log in
Read about "$onChanges(changesObj)" in the AngularJS documentation .
In the component, watch the input data change and, given the right parameters, do what you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question