ng2-pageloading说明文档

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 13,215评论 0 13
  • ViewsBecause view objects are the main way your applicati...
    梁光飞阅读 3,926评论 0 0
  • 李明远透露,据悉百度印度办事处主要以市场、商务合作为主,目前印度最大的电商公司Flipkart、分类信息网站Qui...
    f11015f29d83阅读 3,273评论 0 1
  • 秋日,红霞镇上青烟缕缕。那时人们忘记了这是第几个秋天。黄昏里,街道已经暗下来。偶尔有狗叫,鞭炮,人声杂沓。之后又是...
    e4b685b8fdc5阅读 3,339评论 0 0
  • 2019-7-6 天气:阵雨 今天给王子乔定了一年级必读,有些部分她已经能看懂了。
    王子乔0214阅读 952评论 0 0

友情链接更多精彩内容