angular-ui-router-default
angular-ui-router-default copied to clipboard
AngularJS module that adds support for specifying default child views for abstract states when using ui-router.
I have set up a redirect to a 404 info page on the $urlRouterProvider.otherwise that triggers for URLs that don't match any state. $urlRouterProvider.otherwise(function($injector){ var $state = $injector.get('$state'), $state.go('app.root.notFound'); });...
I get an error when trying to perform: ``` $rootScope.$on('$stateChangeStart', function (event, next) { if (!user.auth) { event.preventDefault(); $state.go('auth'); } }); ``` UI router version 0.4.2 PS: Thank you for...