February 2016
Beginner to intermediate
308 pages
5h 46m
English
When working with a data store, you'll need to be able to handle relationships. In this recipe, we'll go over some common relationships from one-to-many and many-to-one and also how to use it with Ember Data.
As with the other recipes, we'll be using Ember CLI Mirage to mock our backend. In this recipe, we'll create a simple one-to-many and many-to-one relationship. We'll mock a school that has instructors and classes. For every class, there is one instructor. Every instructor will have one or more classes.
$ ember install ember-cli-mirage $ ember g model instructor $ ember g model class $ ember g route index $ ember g helper ...
Read now
Unlock full access