SyntaxFix
Write A Post
Hire A Developer
Questions
If any of you is using the Angular-ui / ui-router, use:$state.go('yourstate') instead of $location. It did the trick for me.
$state.go('yourstate')
$location