Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 775 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 775 Bytes

toastino

Toast component written in AngularDart. Provides clear and easy to use notifying system.

Usage

  1. Create a new ToastManagerComponent in your class in this way:

     ToastManagerComponent _toastManager;
    
      ToastinoExampleComponent(ComponentLoader toastComponentLoader, ViewContainerRef viewContainerRef){
           _toastManager = new ToastManagerComponent(toastComponentLoader, viewContainerRef);
      }
  2. Call ToastManager's newToast method to create a new toast.

     _toastManager.newToast(title, callback);

Libraries

  • toast_manager_component - The core of Toastino: it keeps trace of every toast created and manages their positioning and removal.