app.module.ts 1.68 KB
Newer Older
Andrew Hrdy's avatar
Andrew Hrdy committed
1
2
3
4
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { MatToolbarModule } from '@angular/material/toolbar';
import { MatSidenavModule } from '@angular/material/sidenav';
5
6
7
8
9
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { MatFormFieldModule, MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
import { MatAutocompleteModule } from '@angular/material/autocomplete';
import { MatInputModule } from '@angular/material/input';
Andrew Hrdy's avatar
Andrew Hrdy committed
10
11
12
13
14
15
16
import { LeafletModule } from '@asymmetrik/ngx-leaflet';
import { StoreModule } from '@ngrx/store';

import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MapComponent } from './map/map.component';
import { reducers } from './store/app.reducer';
17
18
import { SearchComponent } from './search/search.component';
import { ReactiveFormsModule } from '@angular/forms';
Andrew Hrdy's avatar
Andrew Hrdy committed
19
20

@NgModule({
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
    declarations: [
        AppComponent,
        MapComponent,
        SearchComponent
    ],
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        ReactiveFormsModule,
        MatToolbarModule,
        MatSidenavModule,
        MatIconModule,
        MatButtonModule,
        MatFormFieldModule,
        MatAutocompleteModule,
        MatInputModule,
        LeafletModule.forRoot(),
        StoreModule.forRoot(reducers),
    ],
    providers: [
        {
            provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
            useValue: {
                appearance: 'outline'
            }
        }
    ],
    bootstrap: [AppComponent]
Andrew Hrdy's avatar
Andrew Hrdy committed
49
50
})
export class AppModule { }