Angular JS: $location Injection Undefined
I'm trying to configure my route in such a way to redirect to the login page if user is not logged. This is my code: angular.module('witBiz.services', []); angular.module('witBiz.c
Solution 1:
Here is a working example http://plnkr.co/edit/gf5LhTjqhz4MoZfVcqIt?p=preview
Couldn't reproduce the error with $location not working inside .run
Post a Comment for "Angular JS: $location Injection Undefined"