angularjs - $location.path not working in controler -



angularjs - $location.path not working in controler -

app.controller('logincontroller', ['$http','$scope', function ($http, $scope, $location) { $location.path("home/index"); }]);

browser give error $location in undefined, how troubleshoot

you did not add together $location dependency notation:

app.controller('logincontroller', ['$http','$scope', '$location', function ($http, $scope, $location) { $location.path("home/index"); }]);

angularjs

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -