Added formula manager to module

This commit is contained in:
Zakary Timson 2018-07-03 10:14:57 -04:00
parent fb459928c4
commit cb71602a37
4 changed files with 10 additions and 8 deletions

View File

@ -12,9 +12,10 @@ import {ScalePipe} from './formulaManager/scale.pipe';
import {AngularMaterialModule} from './material.module';
import {HomeComponent} from './home/home.component';
import {ServiceWorkerModule} from '@angular/service-worker';
import {FormulaManagerComponent} from './formulaManager/formulaManager.component';
@NgModule({
declarations: [AppComponent, ConvertFromGPipe, ConvertToGPipe, HomeComponent, ScalePipe],
declarations: [AppComponent, ConvertFromGPipe, ConvertToGPipe, FormulaManagerComponent, HomeComponent, ScalePipe],
imports: [
AngularMaterialModule,
AngularFireModule.initializeApp(environment.firebase),
@ -23,7 +24,10 @@ import { ServiceWorkerModule } from '@angular/service-worker';
BrowserModule,
FormsModule,
ReactiveFormsModule,
RouterModule.forRoot([{path: '**', component: HomeComponent}]),
RouterModule.forRoot([
{path: 'formulaManager', component: FormulaManagerComponent},
{path: '**', component: HomeComponent}
]),
ServiceWorkerModule.register('/ngsw-worker.js', {enabled: environment.production})
],
providers: [],

View File

@ -1,14 +1,12 @@
import {Component, ElementRef, ViewChildren} from '@angular/core';
import {AngularFirestore} from 'angularfire2/firestore';
import {share} from 'rxjs/operators';
import {ConvertFromGPipe, ConvertToGPipe} from './units.pipe';
@Component({
selector: 'formula-manager',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
templateUrl: './formulaManager.component.html'
})
export class AppComponent {
export class FormulaManagerComponent {
@ViewChildren('cost') componentCosts: ElementRef[];
formulas;