i am trying to load multiple angular apps (1.x, 4, 6 versions) using single-spa framework.
registerApplication('app1', () => loadApp('index.html path') , pathPrefix('/app1'));
registerApplication('app2', () => loadApp('index.html path') , pathPrefix('/app2'));
function loadApp(url) {
return new Promise((resolve, reject) => {
//load all polyfills, vendor, main js files
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "polyfills-bundl.js";
document.head.appendChild(script);
});
}
app1 loads successfully, if i try to load 'app2' it doesn't work. it is the same way for app2.
Can you please help me what is the issue here?
Does single-spa-webpack-example supports to load different angular version apps?
i am trying to load multiple angular apps (1.x, 4, 6 versions) using single-spa framework.
registerApplication('app1', () => loadApp('index.html path') , pathPrefix('/app1'));
registerApplication('app2', () => loadApp('index.html path') , pathPrefix('/app2'));
function loadApp(url) {
return new Promise((resolve, reject) => {
});
}
app1 loads successfully, if i try to load 'app2' it doesn't work. it is the same way for app2.
Can you please help me what is the issue here?
Does single-spa-webpack-example supports to load different angular version apps?