Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/src/app/app.module.ts

    r59329aa re29cc2e  
    33import { BrowserModule } from '@angular/platform-browser';
    44import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
    5 import {FormsModule, ReactiveFormsModule} from '@angular/forms';
    6 import {HttpClient, HttpClientModule} from '@angular/common/http';
     5import { FormsModule, ReactiveFormsModule } from '@angular/forms';
     6import { HttpClient, HttpClientModule } from '@angular/common/http';
    77import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
    88import { CategoryService } from './_services/cateogry.service';
     
    1111import { MatIconModule } from '@angular/material/icon';
    1212import { 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} 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';
     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';
    2020import { PlannerService } from './_services/planner.service';
    2121import { MatButtonModule } from '@angular/material/button';
    22 import {MatGridListModule} from '@angular/material/grid-list';
     22import { MatGridListModule } from '@angular/material/grid-list';
    2323import { CreateInitialPlannerComponent } from './create-initial-planner/create-initial-planner.component';
    2424import { LocationsFormComponent } from './locations-form/locations-form.component';
    2525import { MatFormFieldModule } from '@angular/material/form-field';
    26 import {MatAutocompleteModule} from '@angular/material/autocomplete';
     26import { MatAutocompleteModule } from '@angular/material/autocomplete';
    2727import { EditPlannerComponent } from './planner/edit-planner/edit-planner.component';
    2828import { DetailPlannerComponent } from './planner/detail-planner/detail-planner.component';
    2929import { AddLocationToPlannerPanelComponent } from './location/add-location-to-planner-panel/add-location-to-planner-panel.component';
    3030import { HomepageComponent } from './homepage/homepage.component';
    31 import {AccordionModule} from 'primeng/accordion';     //accordion and accordion tab
    32 import {MenuItem} from 'primeng/api';
    33 import {CarouselModule} from 'primeng/carousel';
    34 import {ButtonModule} from 'primeng/button';
    35 import {ToastModule} from 'primeng/toast';
    36 import {TabViewModule} from 'primeng/tabview';
     31import { AccordionModule } from 'primeng/accordion';     //accordion and accordion tab
     32import { CarouselModule } from 'primeng/carousel';
     33import { ButtonModule } from 'primeng/button';
     34import { ToastModule } from 'primeng/toast';
     35import { TabViewModule } from 'primeng/tabview';
    3736import { LocationDetailsComponent } from './location/location-details/location-details.component';
    38 import {GalleriaModule} from 'primeng/galleria';
     37import { GalleriaModule } from 'primeng/galleria';
     38import { DialogService, DynamicDialogModule } from 'primeng/dynamicdialog';
     39import { MessageService, SharedModule, ConfirmationService } from 'primeng/api';
     40import { TableModule } from 'primeng/table';
     41import { MessagesModule } from 'primeng/messages';
     42import { MessageModule } from 'primeng/message';
     43import { InputTextModule } from 'primeng/inputtext';
     44import { RippleModule } from 'primeng/ripple';
     45import {PaginatorModule} from 'primeng/paginator';
     46import {CardModule} from 'primeng/card';
    3947
    4048@NgModule({
     
    5058    HomepageComponent,
    5159    LocationDetailsComponent
    52     ],
     60  ],
    5361  imports: [
    5462    BrowserModule,
     
    7785    ToastModule,
    7886    TabViewModule,
    79     GalleriaModule
     87    GalleriaModule,
     88    DynamicDialogModule,
     89    MatIconModule,
     90    SharedModule,
     91    MatDialogModule,
     92    TableModule,
     93    MessagesModule,
     94    MessageModule,
     95    InputTextModule,
     96    RippleModule,
     97    FormsModule,
     98    PaginatorModule,
     99    CardModule
    80100  ],
     101
     102
    81103  providers: [
    82104    CategoryService,
    83     PlannerService
    84    
     105    PlannerService,
     106    {
     107      provide: MatDialogRef,
     108      useValue: {}
     109    },
     110    DialogService,
     111    MessageService,
     112    ConfirmationService
     113
     114  ],
     115 
     116  entryComponents: [
     117    AddLocationToPlannerPanelComponent
    85118  ],
    86119  bootstrap: [AppComponent],
    87   schemas: [NO_ERRORS_SCHEMA]
    88  
     120  schemas: [NO_ERRORS_SCHEMA],
     121
    89122})
    90123export class AppModule { }
Note: See TracChangeset for help on using the changeset viewer.