It is possible?
Corralini opened this issue · 2 comments
Corralini commented
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
mazdik commented
@ViewChild('childModal', {static: false}) childModal: ModalComponent;
ngAfterViewInit() {
this.childModal.show();
this.childModal.hide();
}
<app-modal #childModal
Corralini commented
@ViewChild('childModal', {static: false}) childModal: ModalComponent; ngAfterViewInit() { this.childModal.show(); this.childModal.hide(); }<app-modal #childModal
Thanks a lot.