How can I passing variable to subview class?
// passing variable to SubView, try using constructor
body: SubView(false, 123)
subview:
constructor(isEdit, userId) {
super();
this.isEdit = isEdit;
this.userId = userId;
}
config(){
// display passing variable
return { template:"test" + this.isEdit + " - " + this.userId};
}