美文网首页
ng2-pageloading说明文档

ng2-pageloading说明文档

作者: geilishu | 来源:发表于2017-07-13 20:39 被阅读0次

    ng2-pageloading

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

    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

    相关文章

      网友评论

          本文标题:ng2-pageloading说明文档

          本文链接:https://www.haomeiwen.com/subject/nmsghxtx.html