source: trip-planner-front/src/app/app.module.ts@ b738035

Last change on this file since b738035 was b738035, checked in by Ema <ema_spirova@…>, 3 years ago

signup/login server errors on front and remove location from planner

  • Property mode set to 100644
File size: 5.0 KB
Line 
1import { AppRoutingModule } from './app-routing.module';
2import { AppComponent } from './app.component';
3import { BrowserModule } from '@angular/platform-browser';
4import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
5import { FormsModule, ReactiveFormsModule } from '@angular/forms';
6import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
7import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
8import { CategoryService } from './_services/cateogry.service';
9import { PlannerComponent } from './planner/planner.component';
10import { LocationComponent } from './location/location.component';
11import { MatIconModule } from '@angular/material/icon';
12import { MatSelectModule } from '@angular/material/select';
13import { MatInputModule } from '@angular/material/input';
14import { MatChipsModule } from '@angular/material/chips';
15import { MatTabsModule } from '@angular/material/tabs';
16import { MatDialogModule, MatDialogRef } from '@angular/material/dialog';
17import { MatBadgeModule } from '@angular/material/badge';
18import { MatDividerModule } from '@angular/material/divider';
19import { MatCardModule } from '@angular/material/card';
20import { PlannerService } from './_services/planner.service';
21import { MatButtonModule } from '@angular/material/button';
22import { MatGridListModule } from '@angular/material/grid-list';
23import { CreateInitialPlannerComponent } from './create-initial-planner/create-initial-planner.component';
24import { LocationsFormComponent } from './locations-form/locations-form.component';
25import { MatFormFieldModule } from '@angular/material/form-field';
26import { MatAutocompleteModule } from '@angular/material/autocomplete';
27import { EditPlannerComponent } from './planner/edit-planner/edit-planner.component';
28import { AddLocationToPlannerPanelComponent } from './location/add-location-to-planner-panel/add-location-to-planner-panel.component';
29import { HomepageComponent } from './homepage/homepage.component';
30import { AccordionModule } from 'primeng/accordion'; //accordion and accordion tab
31import { CarouselModule } from 'primeng/carousel';
32import { ButtonModule } from 'primeng/button';
33import { ToastModule } from 'primeng/toast';
34import { TabViewModule } from 'primeng/tabview';
35import { LocationDetailsComponent } from './location/location-details/location-details.component';
36import { GalleriaModule } from 'primeng/galleria';
37import { DialogService, DynamicDialogModule } from 'primeng/dynamicdialog';
38import { MessageService, SharedModule, ConfirmationService } from 'primeng/api';
39import { TableModule } from 'primeng/table';
40import { MessagesModule } from 'primeng/messages';
41import { MessageModule } from 'primeng/message';
42import { InputTextModule } from 'primeng/inputtext';
43import { RippleModule } from 'primeng/ripple';
44import { PaginatorModule } from 'primeng/paginator';
45import { CardModule } from 'primeng/card';
46import { RegisterComponent } from './homepage/register/register.component';
47import { LoginComponent } from './homepage/login/login.component';
48import { AuthGuard } from './auth/auth.guard';
49import { AuthInterceptor } from './auth/auth.interceptor';
50import { ExploreComponent } from './explore/explore.component';
51import {AutoCompleteModule} from 'primeng/autocomplete';
52import { ExploreResultComponent } from './explore/explore-result/explore-result.component';
53import {RatingModule} from 'primeng/rating';
54import { CustomValidators } from './providers/CustomValidators';
55
56@NgModule({
57 declarations: [
58 AppComponent,
59 PlannerComponent,
60 LocationComponent,
61 CreateInitialPlannerComponent,
62 LocationsFormComponent,
63 EditPlannerComponent,
64 AddLocationToPlannerPanelComponent,
65 HomepageComponent,
66 LocationDetailsComponent,
67 RegisterComponent,
68 LoginComponent,
69 ExploreComponent,
70 ExploreResultComponent
71 ],
72 imports: [
73 BrowserModule,
74 AppRoutingModule,
75 FormsModule,
76 HttpClientModule,
77 BrowserAnimationsModule,
78 MatBadgeModule,
79 MatIconModule,
80 MatInputModule,
81 MatChipsModule,
82 MatTabsModule,
83 MatDialogModule,
84 MatDividerModule,
85 MatCardModule,
86 MatButtonModule,
87 MatGridListModule,
88 MatFormFieldModule,
89 MatAutocompleteModule,
90 HttpClientModule,
91 ReactiveFormsModule,
92 MatSelectModule,
93 AccordionModule,
94 CarouselModule,
95 ButtonModule,
96 ToastModule,
97 TabViewModule,
98 GalleriaModule,
99 DynamicDialogModule,
100 MatIconModule,
101 SharedModule,
102 MatDialogModule,
103 TableModule,
104 MessagesModule,
105 MessageModule,
106 InputTextModule,
107 RippleModule,
108 FormsModule,
109 PaginatorModule,
110 CardModule,
111 AutoCompleteModule,
112 RatingModule
113 ],
114
115
116 providers: [
117 CategoryService,
118 PlannerService,
119 {
120 provide: MatDialogRef,
121 useValue: {},
122
123 },
124 {
125 provide: HTTP_INTERCEPTORS,
126 useClass: AuthInterceptor,
127 multi: true
128 },
129 DialogService,
130 MessageService,
131 ConfirmationService,
132 AuthGuard
133 ],
134
135 entryComponents: [
136 AddLocationToPlannerPanelComponent
137 ],
138 bootstrap: [AppComponent],
139 schemas: [NO_ERRORS_SCHEMA],
140
141})
142export class AppModule { }
Note: See TracBrowser for help on using the repository browser.