| @@ -1,3 +1,4 @@ | |||||
| <app-header></app-header> | |||||
| <div class="container"> | <div class="container"> | ||||
| <div class="row"> | <div class="row"> | ||||
| <div class="col-md-12"> | <div class="col-md-12"> | ||||
| @@ -5,15 +5,29 @@ import { HttpModule } from '@angular/http'; | |||||
| import { AppComponent } from './app.component'; | 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'; | |||||
| @NgModule({ | @NgModule({ | ||||
| declarations: [ | declarations: [ | ||||
| AppComponent | |||||
| AppComponent, | |||||
| HeaderComponent, | |||||
| RecipesComponent, | |||||
| RecipeListComponent, | |||||
| RecipeDetailComponent, | |||||
| RecipeItemComponent, | |||||
| ShoppingListComponent, | |||||
| ShoppingEditComponent | |||||
| ], | ], | ||||
| imports: [ | imports: [ | ||||
| BrowserModule, | BrowserModule, | ||||
| FormsModule, | |||||
| FormsModule, | |||||
| HttpModule | HttpModule | ||||
| ], | ], | ||||
| providers: [], | providers: [], | ||||
| @@ -0,0 +1 @@ | |||||
| <h1>The Header</h1> | |||||
| @@ -0,0 +1,9 @@ | |||||
| import { Component } from "@angular/core"; | |||||
| @Component({ | |||||
| selector: 'app-header', | |||||
| templateUrl: './header.component.html' | |||||
| }) | |||||
| export class HeaderComponent { | |||||
| } | |||||
| @@ -0,0 +1,3 @@ | |||||
| <p> | |||||
| recipe-detail works! | |||||
| </p> | |||||
| @@ -0,0 +1,15 @@ | |||||
| import { Component, OnInit } from '@angular/core'; | |||||
| @Component({ | |||||
| selector: 'app-recipe-detail', | |||||
| templateUrl: './recipe-detail.component.html', | |||||
| styleUrls: ['./recipe-detail.component.css'] | |||||
| }) | |||||
| export class RecipeDetailComponent implements OnInit { | |||||
| constructor() { } | |||||
| ngOnInit() { | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,3 @@ | |||||
| <p> | |||||
| recipe-item works! | |||||
| </p> | |||||
| @@ -0,0 +1,15 @@ | |||||
| import { Component, OnInit } from '@angular/core'; | |||||
| @Component({ | |||||
| selector: 'app-recipe-item', | |||||
| templateUrl: './recipe-item.component.html', | |||||
| styleUrls: ['./recipe-item.component.css'] | |||||
| }) | |||||
| export class RecipeItemComponent implements OnInit { | |||||
| constructor() { } | |||||
| ngOnInit() { | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,3 @@ | |||||
| <p> | |||||
| recipe-list works! | |||||
| </p> | |||||
| @@ -0,0 +1,15 @@ | |||||
| import { Component, OnInit } from '@angular/core'; | |||||
| @Component({ | |||||
| selector: 'app-recipe-list', | |||||
| templateUrl: './recipe-list.component.html', | |||||
| styleUrls: ['./recipe-list.component.css'] | |||||
| }) | |||||
| export class RecipeListComponent implements OnInit { | |||||
| constructor() { } | |||||
| ngOnInit() { | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,3 @@ | |||||
| <p> | |||||
| recipes works! | |||||
| </p> | |||||
| @@ -0,0 +1,15 @@ | |||||
| import { Component, OnInit } from '@angular/core'; | |||||
| @Component({ | |||||
| selector: 'app-recipes', | |||||
| templateUrl: './recipes.component.html', | |||||
| styleUrls: ['./recipes.component.css'] | |||||
| }) | |||||
| export class RecipesComponent implements OnInit { | |||||
| constructor() { } | |||||
| ngOnInit() { | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,3 @@ | |||||
| <p> | |||||
| shopping-edit works! | |||||
| </p> | |||||
| @@ -0,0 +1,15 @@ | |||||
| import { Component, OnInit } from '@angular/core'; | |||||
| @Component({ | |||||
| selector: 'app-shopping-edit', | |||||
| templateUrl: './shopping-edit.component.html', | |||||
| styleUrls: ['./shopping-edit.component.css'] | |||||
| }) | |||||
| export class ShoppingEditComponent implements OnInit { | |||||
| constructor() { } | |||||
| ngOnInit() { | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,3 @@ | |||||
| <p> | |||||
| shopping-list works! | |||||
| </p> | |||||
| @@ -0,0 +1,15 @@ | |||||
| import { Component, OnInit } from '@angular/core'; | |||||
| @Component({ | |||||
| selector: 'app-shopping-list', | |||||
| templateUrl: './shopping-list.component.html', | |||||
| styleUrls: ['./shopping-list.component.css'] | |||||
| }) | |||||
| export class ShoppingListComponent implements OnInit { | |||||
| constructor() { } | |||||
| ngOnInit() { | |||||
| } | |||||
| } | |||||