假设我有组件,其模板包含一个按钮Edit,当用户单击时,我想将另一个组件作为模态模板(动态模态模板)加载。这是我的组件ProfilePictureModalComponent其中包含Edit按钮:import{Component,Input,OnInit,ViewChild}from'@angular/core';import{NgbModal,NgbActiveModal}from'@ng-bootstrap/ng-bootstrap';import{AddProfilePictureComponent}from"./add-profile-picture.component";import