Changeset 84d0fbb for trip-planner-front/src/app/app.module.ts
- Timestamp:
- 12/19/21 19:39:00 (3 years ago)
- Branches:
- master
- Children:
- bdd6491
- Parents:
- 1ad8e64
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/app.module.ts
r1ad8e64 r84d0fbb 4 4 import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core'; 5 5 import { FormsModule, ReactiveFormsModule } from '@angular/forms'; 6 import { HttpClient, HttpClientModule } from '@angular/common/http';6 import { HttpClient, HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'; 7 7 import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; 8 8 import { CategoryService } from './_services/cateogry.service'; … … 47 47 import { RegisterComponent } from './homepage/register/register.component'; 48 48 import { LoginComponent } from './homepage/login/login.component'; 49 import { AuthGuard } from './auth/auth.guard'; 50 import { AuthInterceptor } from './auth/auth.interceptor'; 49 51 50 52 @NgModule({ … … 109 111 PlannerService, 110 112 { 111 provide: MatDialogRef, 112 useValue: {} 113 provide: MatDialogRef, 114 useValue: {}, 115 116 }, 117 { 118 provide: HTTP_INTERCEPTORS, 119 useClass: AuthInterceptor, 120 multi: true 113 121 }, 114 122 DialogService, 115 123 MessageService, 116 ConfirmationService 117 124 ConfirmationService, 125 AuthGuard 118 126 ], 119 127
Note:
See TracChangeset
for help on using the changeset viewer.