1 | import { AppRoutingModule } from './app-routing.module';
|
---|
2 | import { AppComponent } from './app.component';
|
---|
3 | import { BrowserModule } from '@angular/platform-browser';
|
---|
4 | import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
---|
5 | import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
---|
6 | import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
---|
7 | import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
---|
8 | import { CategoryService } from './_services/cateogry.service';
|
---|
9 | import { PlannerComponent } from './planner/planner.component';
|
---|
10 | import { LocationComponent } from './location/location.component';
|
---|
11 | import { MatIconModule } from '@angular/material/icon';
|
---|
12 | import { MatSelectModule } from '@angular/material/select';
|
---|
13 | import { MatInputModule } from '@angular/material/input';
|
---|
14 | import { MatChipsModule } from '@angular/material/chips';
|
---|
15 | import { MatTabsModule } from '@angular/material/tabs';
|
---|
16 | import { MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
---|
17 | import { MatBadgeModule } from '@angular/material/badge';
|
---|
18 | import { MatDividerModule } from '@angular/material/divider';
|
---|
19 | import { MatCardModule } from '@angular/material/card';
|
---|
20 | import { PlannerService } from './_services/planner.service';
|
---|
21 | import { MatButtonModule } from '@angular/material/button';
|
---|
22 | import { MatGridListModule } from '@angular/material/grid-list';
|
---|
23 | import { CreateInitialPlannerComponent } from './create-initial-planner/create-initial-planner.component';
|
---|
24 | import { LocationsFormComponent } from './locations-form/locations-form.component';
|
---|
25 | import { MatFormFieldModule } from '@angular/material/form-field';
|
---|
26 | import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
---|
27 | import { EditPlannerComponent } from './planner/edit-planner/edit-planner.component';
|
---|
28 | import { AddLocationToPlannerPanelComponent } from './location/add-location-to-planner-panel/add-location-to-planner-panel.component';
|
---|
29 | import { HomepageComponent } from './homepage/homepage.component';
|
---|
30 | import { AccordionModule } from 'primeng/accordion'; //accordion and accordion tab
|
---|
31 | import { CarouselModule } from 'primeng/carousel';
|
---|
32 | import { ButtonModule } from 'primeng/button';
|
---|
33 | import { ToastModule } from 'primeng/toast';
|
---|
34 | import { TabViewModule } from 'primeng/tabview';
|
---|
35 | import { LocationDetailsComponent } from './location/location-details/location-details.component';
|
---|
36 | import { GalleriaModule } from 'primeng/galleria';
|
---|
37 | import { DialogService, DynamicDialogModule } from 'primeng/dynamicdialog';
|
---|
38 | import { MessageService, SharedModule, ConfirmationService } from 'primeng/api';
|
---|
39 | import { TableModule } from 'primeng/table';
|
---|
40 | import { MessagesModule } from 'primeng/messages';
|
---|
41 | import { MessageModule } from 'primeng/message';
|
---|
42 | import { InputTextModule } from 'primeng/inputtext';
|
---|
43 | import { RippleModule } from 'primeng/ripple';
|
---|
44 | import { PaginatorModule } from 'primeng/paginator';
|
---|
45 | import { CardModule } from 'primeng/card';
|
---|
46 | import { RegisterComponent } from './homepage/register/register.component';
|
---|
47 | import { LoginComponent } from './homepage/login/login.component';
|
---|
48 | import { AuthGuard } from './auth/auth.guard';
|
---|
49 | import { AuthInterceptor } from './auth/auth.interceptor';
|
---|
50 | import { ExploreComponent } from './explore/explore.component';
|
---|
51 | import {AutoCompleteModule} from 'primeng/autocomplete';
|
---|
52 | import { ExploreResultComponent } from './explore/explore-result/explore-result.component';
|
---|
53 | import {RatingModule} from 'primeng/rating';
|
---|
54 | import { 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 | })
|
---|
142 | export class AppModule { }
|
---|