on 05-14-2019 3:44 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you just look at controller object, probably you won't see anything.
this.getView().getModel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if the view is not created by the component
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.