SAP Spartacus Component-wrapper.directive.ts launch Component的三个参数

拿到Component mapping后,使用subscribe fire this.launchComponent这个方法: launcher的三个输入参数: componentMapping viewContainerRef elementInjector 首先根据injector和Component类型(字符串)拿到Component factory: 再使用viewContainerRef
相关文章
相关标签/搜索