Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Last active February 1, 2021 15:56
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/636b6beb15e5bb9f54eae4d00e515a7c to your computer and use it in GitHub Desktop.
Save NetanelBasal/636b6beb15e5bb9f54eae4d00e515a7c to your computer and use it in GitHub Desktop.
import { HotToastService } from '@ngneat/hot-toast';
@Component({})
export class AppComponent {
constructor(private toast: HotToastService,
private usersService: UsersService) {}
update() {
this.usersService.updateUser().pipe(
this.toast.observe({
loading: 'Updating...',
success: '🚀',
error: '😡'
})
).subcribe()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment