Skip to content

elmeerr/ng2-arc-progress

Repository files navigation

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.

Live demo

You can check the component working here: https://elmeerr.github.io/ng2-arc-progress-demo/

License

MIT © Elmer Dantas

About

Angular 4 arc progress bar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published