Skip to content

v7.1.0

Compare
Choose a tag to compare
@limonte limonte released this 05 Dec 22:50

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.