Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import { Injectable } from '@angular/core';
  2. import { ToastrService } from 'ngx-toastr';
  3.  
  4.  
  5. @Injectable()
  6. export class ToasterServiceMethods {
  7.  
  8. constructor(private toaster:ToastrService) { }
  9. successToaster(){
  10. this.toaster.success('This is success toastr...')
  11. }
  12. infoToaster(){
  13. this.toaster.info('This is info toastr...')
  14. }
  15. warningToaster(){
  16. this.toaster.warning('This is warning toastr...')
  17. }
  18. errorToaster(){
  19. this.toaster.error('This is error toastr...')
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement