Fixed bug when injecting $location.
Merge pull request #22 from B8li/master

Fix bug when injecting $location.