mazdik/ng-modal

It is possible?

Corralini opened this issue · 2 comments

Hello, my name is Alejandro and i have a question, it is possible make the modal open by default?
Let me explain, i want open the modal when the application start, like a welcome message or something similar.

Thanks,
Alejandro Corral

@ViewChild('childModal', {static: false}) childModal: ModalComponent;
ngAfterViewInit() {
  this.childModal.show();
  this.childModal.hide();
}

<app-modal #childModal

@ViewChild('childModal', {static: false}) childModal: ModalComponent;
ngAfterViewInit() {
  this.childModal.show();
  this.childModal.hide();
}

<app-modal #childModal

Thanks a lot.