#4 Generate Models

In my opinion, Ember CLI is the best “feature” of ember and you can use it to generate all sort of things.  Here is how to generate models for your app.

or for short use ‘g’ instead of ‘generate’ i.e.

The above command will generate the following model

Bonus

If you make a mistake while generating, you can undo it with a “destroy”.  For example, to undo the above generation, you would call

d = destroy


Also published on Medium.

Published by

Emad Ibrahim

Author of asp .net MVC & TDD, entrepreneur, passionate technologist, programmer and productivity nut. more at http://t.co/oSJXPvzu