Created
February 1, 2021 15:02
-
-
Save NetanelBasal/ddd06b22d5248e8044f5659a9cf43e08 to your computer and use it in GitHub Desktop.
This file contains 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 { HotToastService } from '@ngneat/hot-toast'; | |
@Component({}) | |
export class AppComponent { | |
constructor(private toast: HotToastService) {} | |
showToast() { | |
this.toast.show('Hello World!'); | |
this.toast.success('Yeah!!'); | |
this.toast.warning('Boo!'); | |
this.toast.error('Oh no!'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment