提交 fe5e365a 编写于 作者: TodayCoding's avatar TodayCoding

ng-alain15 main register micro apps and start

上级 6f89add0
......@@ -4,6 +4,7 @@ import { TitleService, VERSION as VERSION_ALAIN } from '@delon/theme';
import { environment } from '@env/environment';
import { NzModalService } from 'ng-zorro-antd/modal';
import { VERSION as VERSION_ZORRO } from 'ng-zorro-antd/version';
import { registerMicroApps, start } from 'qiankun';
@Component({
selector: 'app-root',
......@@ -17,6 +18,15 @@ export class AppComponent implements OnInit {
private titleSrv: TitleService,
private modalSrv: NzModalService
) {
registerMicroApps([
{
name: 'micro1',
entry: 'http://localhost:4201/',
container: '#qiankun-container-micro1',
activeRule: '#/micro1',
},
]);
start();
renderer.setAttribute(el.nativeElement, 'ng-alain-version', VERSION_ALAIN.full);
renderer.setAttribute(el.nativeElement, 'ng-zorro-version', VERSION_ZORRO.full);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册