SyntaxFix
Write A Post
Hire A Developer
Questions
Use Timeout
$timeout(function () { console.log($state.current, 'this is working fine'); }, 100);
See - https://github.com/angular-ui/ui-router/issues/1627