Created
February 23, 2021 11:48
-
-
Save Bilkiss/108c28d4e6382aa002437f35a769a890 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import Swal from 'sweetalert2'; | |
@Component({ | |
selector: 'example-component', | |
template: ‘Swal component!' | |
}) | |
export class ExampleComponent implements OnInit { | |
constructor() {} | |
ngOnInit(): void { | |
Swal.fire('Oops...', 'Something went wrong!', 'error’); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment