1.0.3 • Published 6 years ago

angular2-arc-progress v1.0.3

Weekly downloads
60
License
MIT
Repository
github
Last release
6 years ago

ng2-arc-progress

Installation

To install this library, run:

$ npm install angular2-arc-progress --save

Consuming the library

You can import the library in any Angular application from your Angular AppModule (or any module you want):

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { N2ArcProgressModule } from 'angular2-arc-progress';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Import
    N2ArcProgressModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Then you can use its component in your Angular application:

<h1>
  Arc progress angular
</h1>
<ng2-arc-progress></ng2-arc-progress>

Properties

size: size of the arc (width x height)
gap: gap in the circle given in degrees from 90 to 180.
• 90 = Half circle
• 180 = Full circle
progress: progress percentage (0 to 100)
backgroundColor: background color of the arc
progressColor: color of the progress bar
strokeWidth: stroke width of the arc.

License

MIT © Elmer Dantas

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago