I am newbie for angularjs. I want to call controller function from run block.
Somethings like:-
//index.html
.
.
<li class="nav-sap"><a ng-click="loadSfData(5)" href="">Sf</a></li>
.
.
//app.js
myApp.run(['$rootScope', function ($rootScope) {
$rootScope.callFunctionFromGlobally=function(sid){
//Here, i want call controller function
}
}]);