cancel
Showing results for 
Search instead for 
Did you mean: 

Availability of global models in view controller

WFlats
Participant

I create models (FLP, Device, base configuration) in the component.js (the model data is in model/models.js).

After creation I can see the models properly set in this.oView.oModels.

But in all my view controllers I can see none of them! Only the view models of the view controllers are defined.

I know the "walkthrough step 9" saying the models created in component.js are inherited to the children controllers. Also went through similar questions here with the same answers.

What could make my global models not to be inherited?

Accepted Solutions (1)

Accepted Solutions (1)

boghyon
Product and Topic Expert
Product and Topic Expert

Would be nice if you could provide some code snippets of yours how you created and set the model. Anyhow, this answer might be helpful: https://stackoverflow.com/a/42251431/5846045

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

if you just look at controller object, probably you won't see anything.

this.getView().getModel

junwu
Active Contributor
0 Kudos

if the view is not created by the component