ng2-pageloading
Pageloading effects for angular2, inspired by PageLoadingEffects and me-pageloading.
git location.
Install
npm install ng2-pageloading --save
Usage
- 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 theeffect
value set toPageLoadingService
. If no effectName is set toPageLoadingService
, the value israndom
. -
PageLoadingService.hide()
, hide the current animation.
ThanksTo
PageLoadingEffects and me-pageloading
License
MIT
网友评论