1.0.14 • Published 8 years ago
ng2-pageloading v1.0.14
ng2-pageloading
Pageloading effects for angular2, inspired by PageLoadingEffects and me-pageloading. git location.
Install
npm install ng2-pageloading --saveUsage
- include
<script src="http://cdn.staticfile.org/snap.svg/0.2.0/snap.svg-min.js"></script>in your html - import
PageLoadingModule. - use component
<page-loading></page-loading>.
API
PageLoadingService.show([effectName]), show animation, you can specify which animation to show. If not specify, ng2-pageLoading will use theeffectvalue set toPageLoadingService. If no effectName is set toPageLoadingService, the value israndom.PageLoadingService.hide(), hide the current animation.
ThanksTo
PageLoadingEffects and me-pageloading
License
MIT