Answer the question
In order to leave comments, you need to log in
Components in Angular?
There are parent and child components. If you need to call the function of the parent component from the child, then it needs to be passed through bindings. What if you need to do the opposite, call a function from the parent that is declared in the controller of the child component?
Answer the question
In order to leave comments, you need to log in
from the parent to call the function that is declared in the controller of the child component?
You can use the $onChanges function - in the second angular, the analogue is used everywhere. Note that it only works with one-way bindings.
blog.thoughtram.io/angularjs/2016/03/29/exploring-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question