This component allow you to manage a progress visually with split slots like shown in below image
- Run
build:lib
that will build ngx-split-progressbar library. - Run
ng serve
for a dev server. Navigate tohttp://localhost:4200/
. The app will automatically reload if you change any of the source files.
Type the following command to install the package:
npm install ngx-split-progressbar@latest
Then you need to import it into your app modules
import { NgxSplitProgressbarModule } from "ngx-split-progrssbar"
@NgModule({
imports: [
NgxSplitProgressbarModule
]
})
Include the component in below format
<lib-ngx-split-progressbar
[data]="[
{ name: 'Slot one', color: '#AEC6F4', weightage: 20 },
{ name: 'Slot two', color: '#C5C9E5', weightage: 20 },
{ name: 'Slot three', color: '#BBDBCE', weightage: 20 },
{ name: 'Slot four', color: '#F8E6A6', weightage: 40 },
]">
</lib-ngx-split-progressbar>