Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Injectable } from '@angular/core';
- import { ToastrService } from 'ngx-toastr';
- @Injectable()
- export class ToasterServiceMethods {
- constructor(private toaster:ToastrService) { }
- successToaster(){
- this.toaster.success('This is success toastr...')
- }
- infoToaster(){
- this.toaster.info('This is info toastr...')
- }
- warningToaster(){
- this.toaster.warning('This is warning toastr...')
- }
- errorToaster(){
- this.toaster.error('This is error toastr...')
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement