Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Created February 1, 2021 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NetanelBasal/ddd06b22d5248e8044f5659a9cf43e08 to your computer and use it in GitHub Desktop.
Save NetanelBasal/ddd06b22d5248e8044f5659a9cf43e08 to your computer and use it in GitHub Desktop.
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