Ver código fonte

03-46 Recipe model

tags/before_ngrx
Nils Dittberner 8 anos atrás
pai
commit
2a16fbd061
2 arquivos alterados com 12 adições e 0 exclusões
  1. +1
    -0
      src/app/recipes/recipe-list/recipe-list.component.ts
  2. +11
    -0
      src/app/recipes/recipe.model.ts

+ 1
- 0
src/app/recipes/recipe-list/recipe-list.component.ts Ver arquivo

@@ -6,6 +6,7 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./recipe-list.component.css']
})
export class RecipeListComponent implements OnInit {
recipes = [];

constructor() { }



+ 11
- 0
src/app/recipes/recipe.model.ts Ver arquivo

@@ -0,0 +1,11 @@
export class Recipe {
public name: string;
public description: string;
public imagePath: string;

constructor(name: string, description: string, imagePath: string) {
this.name = name;
this.description = description;
this.imagePath = imagePath;
}
}

Carregando…
Cancelar
Salvar