From bad63f94e7f9ea6a3676ae7abe2d325bd4bb8502 Mon Sep 17 00:00:00 2001 From: mujianning Date: Wed, 29 Mar 2023 19:02:41 +0800 Subject: [PATCH] ng-alain15-example main register micro apps and start --- ng-alain15-example/main/src/app/app.component.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ng-alain15-example/main/src/app/app.component.ts b/ng-alain15-example/main/src/app/app.component.ts index e91655e..d88a991 100644 --- a/ng-alain15-example/main/src/app/app.component.ts +++ b/ng-alain15-example/main/src/app/app.component.ts @@ -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: '/micro1/', + container: '#qiankun-container-micro1', + activeRule: 'main/#/micro1' + } + ]); + start(); renderer.setAttribute(el.nativeElement, 'ng-alain-version', VERSION_ALAIN.full); renderer.setAttribute(el.nativeElement, 'ng-zorro-version', VERSION_ZORRO.full); } -- GitLab