Friday 15 June 2012

ember.js - Can I name the data store something other than App.Store? -


Is there a store model in my problem domain? Can I reserve .tore and raise some other class to DS.Store ? I see some code about the register ('store: main') , but I do not know if I can override it clearly.

I can just change the name of

"text">

I think you can not, because Store is the class name reserved for a ember-data . Also, when you App.Store = DS.Store.extend () property store on your app namespace app amber-data is looking for the name store , if it is not, then it does not work. IMOs are working better if you change the name of your store model to avoid the collision of the name.

Hope this helps

No comments:

Post a Comment