Skip to content

qq386232894/ng2-pageloading

Repository files navigation

ng2-pageloading

Pageloading effects for angular2, inspired by PageLoadingEffects and me-pageloading.

Install

npm install ng2-pageloading --save

Usage

  1. include <script src="http://cdn.staticfile.org/snap.svg/0.2.0/snap.svg-min.js"></script> in your html
  2. import PageLoadingModule.
  3. 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 the effect value set to PageLoadingService. If no effectName is set to PageLoadingService, the value is random.
  • PageLoadingService.hide(), hide the current animation.

ThanksTo

PageLoadingEffects and me-pageloading

License

MIT

About

a pageloading effect for angular2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published