Accessing functions of one controller from another in angular js
There are many ways of calling a function from a controller which is in another controller in Angular Js. $emit() or $broadcast() $controller Create a factory / service and inject them in controller. One of the best ways of doing it is injecting $controller in your controller.This way we are sure about calling the function compared […]