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

ng-alain15-example main register micro apps and start

上级 a68fbb51
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册