https://github.com/shubhi1407/ng2-component-spinner
A fairly simple and customizable spinner for your angular 2/4 component.
https://github.com/shubhi1407/ng2-component-spinner
angular angular-components angular2 angular4 typescript
Last synced: about 1 year ago
JSON representation
A fairly simple and customizable spinner for your angular 2/4 component.
- Host: GitHub
- URL: https://github.com/shubhi1407/ng2-component-spinner
- Owner: shubhi1407
- Created: 2017-04-04T17:49:38.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2017-04-11T19:05:41.000Z (about 9 years ago)
- Last Synced: 2025-04-06T18:38:39.803Z (over 1 year ago)
- Topics: angular, angular-components, angular2, angular4, typescript
- Language: TypeScript
- Homepage: https://shubhi1407.github.io/ng2-component-spinner/
- Size: 54.7 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ng2-component-spinner
## Installation
To install this library, run:
```bash
$ npm install ng2-component-spinner --save
```
## Usage
```bash
$ npm install ng2-component-spinner
```
and then from your Angular `AppModule`:
```typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import library
import { SpinnerComponentModule } from 'ng2-component-spinner';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
SpinnerComponentModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
```
Once this library is imported, you can use it in your Angular application:
For this component to work, that component has to be wrapped in a relative positioned div.
```xml
{{title}}
">
```
## Development
To generate all `*.js`, `*.js.map` and `*.d.ts` files:
```bash
$ npm run tsc
```
To lint all `*.ts` files:
```bash
$ npm run lint
```
## License
MIT © [Shubhangi Gupta](mailto:shubhangi140793@gmail.com)