I have a question in the MVVM pattern architecture.
MODEL : A (a,b,c) B(e,f,g)
ViewModel :
View : need A(a,b)+B(e,f)
View need data[ A(a,b) + B(e,f) ] to draw the screen.
How to Join Model According to MVVM rules
My thoughts are as follows
Type A :
MODEL : A (a,b,c) B(e,f,g)
ViewModel : ModelJoin [A(a,b) + B(e,f)] -> Join data and call axios
View : need A(a,b)+B(e,f)
Type B :
MODEL : A (a,b,c) B(e,f,g) -> C(a,b,e,f)
ViewModel : getC(a,b,e,f) -> axios (where load func)?
View : need A(a,b)+B(e,f)
Aucun commentaire:
Enregistrer un commentaire