I have read many questions on this but still can\'t find solution that will be clean and reusable enough.
What I tried and don\'t want to use:
One approach is to use the new ngRef directive:
Then use it in the controller:
function startFirstTimer() {
/* How to run start() function of TimerController here? */
ctrl.timerOne.start();
}
The ngRef directive was introduced as a new feature with AngularJS V1.7.1.
For more information, see AngularJS ng-ref Directive API Reference.