2018-06-25 11:19:17 -04:00
|
|
|
import {BrowserModule} from '@angular/platform-browser';
|
2018-06-25 00:50:47 -04:00
|
|
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
2018-07-03 10:10:47 -04:00
|
|
|
import {RouterModule} from '@angular/router';
|
2018-06-25 00:50:47 -04:00
|
|
|
import {AngularFireModule} from 'angularfire2';
|
|
|
|
import {AngularFirestoreModule} from 'angularfire2/firestore';
|
2018-06-25 11:19:17 -04:00
|
|
|
import {NgModule} from '@angular/core';
|
2018-06-25 00:50:47 -04:00
|
|
|
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
2018-06-25 11:19:17 -04:00
|
|
|
import {AppComponent} from './app.component';
|
2018-07-03 10:10:47 -04:00
|
|
|
import {environment} from '../environments/environment';
|
|
|
|
import {ConvertFromGPipe, ConvertToGPipe} from './formulaManager/units.pipe';
|
|
|
|
import {ScalePipe} from './formulaManager/scale.pipe';
|
2018-06-25 11:19:17 -04:00
|
|
|
import {AngularMaterialModule} from './material.module';
|
2018-07-03 10:10:47 -04:00
|
|
|
import {HomeComponent} from './home/home.component';
|
2018-07-03 10:14:57 -04:00
|
|
|
import {ServiceWorkerModule} from '@angular/service-worker';
|
|
|
|
import {FormulaManagerComponent} from './formulaManager/formulaManager.component';
|
2018-07-10 18:34:35 -04:00
|
|
|
import {NgxElectronModule} from 'ngx-electron';
|
2018-06-24 21:11:31 -04:00
|
|
|
|
|
|
|
@NgModule({
|
2018-07-03 10:14:57 -04:00
|
|
|
declarations: [AppComponent, ConvertFromGPipe, ConvertToGPipe, FormulaManagerComponent, HomeComponent, ScalePipe],
|
2018-06-24 21:11:31 -04:00
|
|
|
imports: [
|
2018-06-25 11:19:17 -04:00
|
|
|
AngularMaterialModule,
|
2018-06-25 00:50:47 -04:00
|
|
|
AngularFireModule.initializeApp(environment.firebase),
|
|
|
|
AngularFirestoreModule,
|
|
|
|
BrowserAnimationsModule,
|
|
|
|
BrowserModule,
|
|
|
|
FormsModule,
|
2018-07-10 18:34:35 -04:00
|
|
|
NgxElectronModule,
|
2018-07-03 10:10:47 -04:00
|
|
|
ReactiveFormsModule,
|
2018-07-03 10:14:57 -04:00
|
|
|
RouterModule.forRoot([
|
|
|
|
{path: 'formulaManager', component: FormulaManagerComponent},
|
|
|
|
{path: '**', component: HomeComponent}
|
|
|
|
]),
|
|
|
|
ServiceWorkerModule.register('/ngsw-worker.js', {enabled: environment.production})
|
2018-06-24 21:11:31 -04:00
|
|
|
],
|
|
|
|
providers: [],
|
|
|
|
bootstrap: [AppComponent]
|
|
|
|
})
|
2018-06-25 11:19:17 -04:00
|
|
|
export class AppModule {}
|