Using Ember CLI Addon Models in Ember Application?


#1

I want to allow something like the following to work in my application:

store.find('my-addon.my-addon-model', 1)

store.find('my-addon/my-addon-model', 1)

store.find('my-addon:my-addon-model', 1) (unlikely)

The thing is I want it to search for a model that is 100% defined in an addon.

import MyAddonModel from 'my-addon/models/my-addon-model' works from within my app - but container resolution doesn’t…

How would I do/allow this?

(Question also posted this on stackoverflow)