jeudi 23 février 2017

How to generate model using Ember-cli with attributes using options (include relationship)?

I remember there is a way to generate a model with all the attributes and relationship for a model using ember-cli something like below,

ember g model user name:string email:string user:has-many

So that I can avoid to type all attr again and again.

name: DS.attr('string')

But I could not find any reference about it. Where can I find more ref. about the detailed usage on how to generate a model with attritbues and relationships?

Question

Where can I find the detailed option reference for command ember generate <generator-name> <options>?




Aucun commentaire:

Enregistrer un commentaire