|
|
|
@@ -2,6 +2,7 @@ import { BrowserModule } from '@angular/platform-browser'; |
|
|
|
import { NgModule } from '@angular/core'; |
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
|
|
|
import { HttpModule } from '@angular/http'; |
|
|
|
import { HttpClientModule } from '@angular/common/http'; |
|
|
|
|
|
|
|
|
|
|
|
import { AppComponent } from './app.component'; |
|
|
|
@@ -18,6 +19,7 @@ import { AppRoutingModule } from './app-routing.module'; |
|
|
|
import { RecipeStartComponent } from './recipes/recipe-start/recipe-start.component'; |
|
|
|
import { RecipeEditComponent } from './recipes/recipe-edit/recipe-edit.component'; |
|
|
|
import { RecipeService } from './recipes/recipe.service'; |
|
|
|
import { DataStorageService } from './shared/data-storage.service'; |
|
|
|
|
|
|
|
|
|
|
|
@NgModule({ |
|
|
|
@@ -38,10 +40,11 @@ import { RecipeService } from './recipes/recipe.service'; |
|
|
|
BrowserModule, |
|
|
|
FormsModule, |
|
|
|
ReactiveFormsModule, |
|
|
|
HttpClientModule, |
|
|
|
HttpModule, |
|
|
|
AppRoutingModule |
|
|
|
], |
|
|
|
providers: [ShoppingListService, RecipeService], |
|
|
|
providers: [ShoppingListService, RecipeService, DataStorageService], |
|
|
|
bootstrap: [AppComponent] |
|
|
|
}) |
|
|
|
export class AppModule { } |