Marvel temp link (Assign & Responses)
- Fix API model 2h
- Change table structure 2h
import { Injectable } from '@angular/core'; | |
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http'; | |
import { Observable, throwError } from 'rxjs'; | |
import { catchError, map } from 'rxjs/operators'; | |
import { LoginService } from '@core/services/auth/login.service'; | |
@Injectable() | |
export class ErrorInterceptor implements HttpInterceptor { | |
constructor(private loginService: LoginService) { } |
import { Injectable } from '@angular/core'; | |
import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; | |
@Injectable() | |
export class AuthGuard implements CanActivate { | |
constructor(private _router: Router) { } | |
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) { |
<form | |
(ngSubmit)="onSubmit(loginForm)" | |
#loginForm="ngForm"> | |
<div class="form-group"> | |
<label for="email">Email address</label> | |
<input | |
type="email" | |
class="form-control" |
Marvel temp link (Assign & Responses)