v7.1.0
7.1.0 (2019-12-05)
Features
-
SweetAlert2Module, SwalComponent: implement "fire on init" strategy (37275fc), closes #145
Usage example:
<swal *ngIf="error" [title]="error.title" [text]="error.text" icon="error" [swalFireOnInit]="true"></swal>
Or, at module level (works with forRoot/forChild):
@NgModule({ imports: [ SweetAlert2Module.forRoot({ fireOnInit: true }) ] }) export class AppModule { }
Or see the feature request @ #145.