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

ng-alain15-example main create qiankun container component

上级 beb74d80
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
@Component({
selector: 'qiankun-container',
template: '<div id="qiankun-container-{{containerId}}"></div>'
})
export class QiankunContainerComponent implements OnInit {
containerId = 'default';
constructor(private route: ActivatedRoute) {}
ngOnInit(): void {
this.containerId = this.route.snapshot.data?.['containerId'];
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册