Created
June 15, 2015 15:48
-
-
Save rbosneag/c4a1db35958572440e97 to your computer and use it in GitHub Desktop.
404 state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$stateProvider.state('main.redirectINITIAL', { | |
//url: '/redirect', | |
views: { | |
'main.content@': { | |
//templateUrl: '/redirect.html', | |
template: '<meta http-equiv="refresh" content="0;URL=/" />', | |
controller: function($rootScope) { | |
//$rootScope.gotoHome = true; | |
} | |
} | |
} | |
}); | |
$urlRouterProvider.otherwise( | |
function($injector, $location) { | |
$injector.invoke(['$state', function($state) { | |
$state.go('main.redirectINITIAL',{"url":$location.$url}); | |
}]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment