I'm sure that Alloy collection is initialized first before the model. But I'm not sure when does this initialization starts.
- Is it after running alloy.js, index.js, or some other .js file?
- Is it before the first window opens, or after?
- Is there a way to force call the initialization process so I can make sure that the initialization happens at the start of index.js?
You initialize collections or models yourself.
Through js: calling
Alloy.createModel(),Alloy.createCollection(),Alloy.Models.instance()orAlloy.Collections.instance()Through markup: using
<Model />or<Collection />tagdocs here