0
, 나는 modal component을 사용하고 있습니다 :각도 2 : 모달 open 이벤트 내 코너 2 응용 프로그램에서
모달 몸에서<div bsModal #addRecordModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel"
aria-hidden="true">
<div class="modal-dialog ">
<div class="modal-header">
</div>
<div class="modal-body" style="min-height: 270px;">
<app-my-test [modal]="addRecordModal"></app-edit-record>
</div>
...
이 ModalDirective 들어있는 MyTestComponent,이 :
@Component({...})
export class MyTestComponent implements OnInit, OnDestroy {
@Input() modal: ModalDirective;
...
어떻게 든 가능하다면 은 MyTestComponent 내부에서 이벤트를 감지 할 수 있습니까?