model is called to create all of the models for the app, and all models for a view, it will create and call the appropriate model utility based upon the modelLoader set in the model in the config
Called for each view or for the app. For each model in the config, it will
create the model utility based upon the modelLoader and call it to create and load the model.
Parameter | Type | Description |
---|---|---|
config | Object | The models section of the config for this view or for the app. |
parent | Object | The parent of this view or the app itself, so that models from the parent will be available to the view. |
app | Object |
loadedModels is an object holding all of the available loaded models for this view.