0.0.17 • Published 9 years ago

ng2-loading-animate v0.0.17

Weekly downloads
32
License
MIT
Repository
github
Last release
9 years ago

Angular2 Loading Animate

Build Status npm version devDependency Status GitHub issues GitHub stars GitHub license

Demo

https://oxycoder.github.io/ng2-loading-animate/demo/

Table of contents

About

Loading animation for angular 2

Installation

Install through npm:

npm install --save ng2-loading-animate

Then use it in your app like so:

app.module.ts

import { LoadingAnimateModule, LoadingAnimateService } from 'ng2-loading-animate';

@NgModule({
  imports: [
    ...
    LoadingAnimateModule.forRoot()
    ...
  ],
  providers: [
    ...
    LoadingAnimateService
    ...
  ]
})

Add directives to your app.component.html (usually at top):

<loading-animate></loading-animate>

In component, to start loading animate: test.component.ts

import { LoadingAnimateService } from 'ng2-loading-animate';

constructor(private _loadingSvc: LoadingAnimateService)

start() {
  this._loadingSvc.setValue(true);
}
stop() {
  this._loadingSvc.setValue(false);
}

Development

Prepare your environment

  • Install Node.js and NPM (should come with)
  • Install local dev dependencies: npm install while current directory is this repo

Development server

Run npm start to start a development server on port 8000 with auto reload + tests.

Testing

Run npm test to run tests once or npm run test:watch to continually run tests.

License

MIT

0.0.17

9 years ago

0.0.16

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago