|
|
|
@@ -1,54 +1,41 @@ |
|
|
|
import { BrowserModule } from '@angular/platform-browser'; |
|
|
|
import { NgModule } from '@angular/core'; |
|
|
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
|
|
|
import { FormsModule } from '@angular/forms'; |
|
|
|
import { HttpModule } from '@angular/http'; |
|
|
|
import { HttpClientModule } from '@angular/common/http'; |
|
|
|
|
|
|
|
|
|
|
|
import { AppComponent } from './app.component'; |
|
|
|
import { HeaderComponent } from './header/header.component'; |
|
|
|
import { RecipesComponent } from './recipes/recipes.component'; |
|
|
|
import { RecipeListComponent } from './recipes/recipe-list/recipe-list.component'; |
|
|
|
import { RecipeDetailComponent } from './recipes/recipe-detail/recipe-detail.component'; |
|
|
|
import { RecipeItemComponent } from './recipes/recipe-list/recipe-item/recipe-item.component'; |
|
|
|
import { ShoppingListComponent } from './shopping-list/shopping-list.component'; |
|
|
|
import { ShoppingEditComponent } from './shopping-list/shopping-edit/shopping-edit.component'; |
|
|
|
import { DropdownDirective } from './shared/dropdown.directive'; |
|
|
|
import { ShoppingListService } from './shopping-list/shopping-list.service'; |
|
|
|
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'; |
|
|
|
import { SignupComponent } from './auth/signup/signup.component'; |
|
|
|
import { SigninComponent } from './auth/signin/signin.component'; |
|
|
|
import { AuthService } from './auth/auth.service'; |
|
|
|
import { AuthGuard } from './auth/auth-guard.service'; |
|
|
|
|
|
|
|
import { RecipesModule } from './recipes/recipes.module'; |
|
|
|
import { SharedModule } from './shared/shared.module'; |
|
|
|
|
|
|
|
@NgModule({ |
|
|
|
declarations: [ |
|
|
|
AppComponent, |
|
|
|
HeaderComponent, |
|
|
|
RecipesComponent, |
|
|
|
RecipeListComponent, |
|
|
|
RecipeDetailComponent, |
|
|
|
RecipeItemComponent, |
|
|
|
ShoppingListComponent, |
|
|
|
ShoppingEditComponent, |
|
|
|
DropdownDirective, |
|
|
|
RecipeStartComponent, |
|
|
|
RecipeEditComponent, |
|
|
|
SignupComponent, |
|
|
|
SigninComponent |
|
|
|
], |
|
|
|
imports: [ |
|
|
|
BrowserModule, |
|
|
|
FormsModule, |
|
|
|
ReactiveFormsModule, |
|
|
|
HttpClientModule, |
|
|
|
HttpModule, |
|
|
|
AppRoutingModule |
|
|
|
AppRoutingModule, |
|
|
|
RecipesModule, |
|
|
|
SharedModule |
|
|
|
], |
|
|
|
providers: [ |
|
|
|
ShoppingListService, |
|
|
|
|