0.0.17 • Published 7 years ago

ng2-loading-animate v0.0.17

Weekly downloads
32
License
MIT
Repository
github
Last release
7 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

7 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago