pablocattaneo
6/6/2017 - 12:11 PM

Import a model inside a template

Import a model inside a template

import { class_name } from '../path';

// Notice path is written without the extention js

/*Example*/
import { Recipe } from '../recipe.model';