Toast Component Injection without being passed ViewContainerRef. No use of ngFor. Fewer dirty checks and higher performance. AoT compilation and lazy loading compatible. Component inheritance for custom toasts. SystemJS/UMD rollup bundle. Animations using Angular's Web Animations API. Output toasts to an optional target directive. Put toasts in a specific div inside your application. This should probably be somewhere that doesn't get deleted. Add ToastContainerModule to the ngModule where you need the directive available. If you are using SystemJS, you should also adjust your configuration to point to the UMD bundle.
Features
- If you are using angular-cli you can add it to your angular.json
- Add ToastrModule to app NgModule, make sure you have BrowserAnimationsModule as well
- There are individual options and global options
- Disable both timeOut and extendedTimeOut
- Put toasts in your own container
- Dismiss current toast when max is reached
Categories
Software DevelopmentLicense
MIT LicenseFollow ngx-toastr
Other Useful Business Software
Build Securely on Azure with Proven Frameworks
Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of ngx-toastr!