slicejs-web-framework 1.0.23 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -95,16 +95,20 @@ export default class Router {
|
|
|
95
95
|
existingComponent.props = { ...existingComponent.props, ...params };
|
|
96
96
|
await existingComponent.update();
|
|
97
97
|
}
|
|
98
|
+
await this.renderRoutesComponentsInPage();
|
|
98
99
|
targetElement.appendChild(existingComponent);
|
|
99
100
|
} else {
|
|
100
101
|
const component = await slice.build(componentName, {
|
|
101
102
|
params,
|
|
102
103
|
sliceId: sliceId,
|
|
103
104
|
});
|
|
105
|
+
await this.renderRoutesComponentsInPage();
|
|
104
106
|
targetElement.innerHTML = '';
|
|
105
107
|
targetElement.appendChild(component);
|
|
106
108
|
}
|
|
107
109
|
|
|
110
|
+
|
|
111
|
+
|
|
108
112
|
if (slice.loading) {
|
|
109
113
|
slice.loading.stop();
|
|
110
114
|
}
|
package/Slice/Slice.js
CHANGED
|
@@ -123,7 +123,9 @@ export default class Slice {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
this.controller.registerComponent(componentInstance);
|
|
126
|
-
|
|
126
|
+
if(isVisual){
|
|
127
|
+
this.controller.registerComponentsRecursively(componentInstance);
|
|
128
|
+
}
|
|
127
129
|
|
|
128
130
|
this.logger.logInfo('Slice', `Instance ${componentInstance.sliceId} created`);
|
|
129
131
|
return componentInstance;
|