Project

General

Profile

1

    
2
import { Router} from '@angular/router';
3

    
4
// export class GuardHelper{
5
//   constructor(private router: Router) {}
6
//
7
//   redirect(url:string, errorCode:number, redirectUrl:string){
8
//       this.router.navigate([url], { queryParams: { "errorCode": errorCode, "redirectUrl":  redirectUrl } });
9
//
10
//   }
11
//
12
// }
13
export class ErrorCodes {
14
   public static NOT_LOGGIN:number =1;
15
   public static NOT_ADMIN:number =2;
16
   public static NOT_VALID:number =3;
17

    
18
}
19
 
(1-1/2)