|
|
@ -7,7 +7,7 @@ app.constant('config', {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.run(['$rootScope', 'auth', '$location', function($rootScope, auth, $location){
|
|
|
|
app.run(['$rootScope', 'auth', '$location', '$routeParams', function($rootScope, auth, $location, $routeParams){
|
|
|
|
$rootScope.$on('$routeChangeError', function(event, next, current){
|
|
|
|
$rootScope.$on('$routeChangeError', function(event, next, current){
|
|
|
|
|
|
|
|
|
|
|
|
if(next && next.templateUrl){
|
|
|
|
if(next && next.templateUrl){
|
|
|
@ -18,6 +18,7 @@ app.run(['$rootScope', 'auth', '$location', function($rootScope, auth, $location
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$rootScope.$on('$routeChangeStart', function(event, next, current){
|
|
|
|
$rootScope.$on('$routeChangeStart', function(event, next, current){
|
|
|
|
|
|
|
|
console.log($routeParams);
|
|
|
|
if(next && next.templateUrl){
|
|
|
|
if(next && next.templateUrl){
|
|
|
|
if(!next.templateUrl.endsWith("login.html") && !next.templateUrl.endsWith("reg.html")){
|
|
|
|
if(!next.templateUrl.endsWith("login.html") && !next.templateUrl.endsWith("reg.html")){
|
|
|
|
}
|
|
|
|
}
|
|
|
|