How to call a function from another controller in AngularJS? [duplicate]
Communication between controllers is done though $emit + $on / $broadcast + $on methods. So in your case you want to call a method of Controller “One” inside Controller “Two”, the correct way to do this is: app.controller(‘One’, [‘$scope’, ‘$rootScope’ function($scope) { $rootScope.$on(“CallParentMethod”, function(){ $scope.parentmethod(); }); $scope.parentmethod = function() { // task } } ]); … Read more