To install this library, run:
$ npm install angular2-arc-progress --saveYou 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>
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.
You can check the component working here: https://elmeerr.github.io/ng2-arc-progress-demo/
MIT © Elmer Dantas