How to call another scope function in AngularJS -


in angularjs, have 2 scope function in controller,

$scope.fn1 = function(){ //do };  $scope.fn2 = function(){     //do b     //i want call fn1 here. }; 

if fn2 want call fn1, how can do? thanks!

since both functions in same scope can call $scope.fn1() inside fn2.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -