在 Html 元素中手动插入 Material 组件

Manually insert Material Component inside Html Element

如何在 DivElement 中添加 Material 组件列表,例如 MaterialCheckboxComponent?

DivElement.childrenList<Element>,我看不出如何将 List<MaterialCheckboxComponent> 转换为 List<Element>

如何手动实现 MaterialCheckboxComponent 完成的操作?

https://webdev.dartlang.org/angular/note/faq/component-loading是关于动态添加组件的部分

@Component(
  selector: 'ad-view',
  template: r'''
    This component is sponsored by:
    <template #currentAd></template>
  ''',
)
class AdViewComponent {
  final ComponentLoader _loader;

  AdViewComponent(this._loader);

  @ViewChild('currentAd', read: ViewContainerRef)
  ViewContainerRef currentAd;

  @Input()
  set component(ComponentFactory component) {
    _loader.loadNextToLocation(component, currentAd);
  }
}