You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on documentation here, if [options]="{ show: true }" is provided, then the modal should be shown upon initalization.
But this value is not even checked anywhere in modal.component.ts.
So, the option does not work. But it is a really nice one, since it allows to handle modals with *ngIf statements instead of show() / hide()
The text was updated successfully, but these errors were encountered:
If anyone else is interested, it can be work-arounded like this:
// place this somewhere, e.g. vendor.tsimport{ModalDirective,modalConfigDefaults}from'ng2-bootstrap';constnativeFn=ModalDirective.prototype.ngAfterViewInit;modalConfigDefaults.show=false;ModalDirective.prototype.ngAfterViewInit=function(this: ModalDirective){nativeFn.apply(this,arguments);if(this.config.show){this.show();}}
Based on documentation here, if
[options]="{ show: true }"
is provided, then the modal should be shown upon initalization.But this value is not even checked anywhere in modal.component.ts.
So, the option does not work. But it is a really nice one, since it allows to handle modals with
*ngIf
statements instead ofshow() / hide()
The text was updated successfully, but these errors were encountered: