Angular Duration-picker Component

A reusable Angular duration-picker component that works with ISO_8601 durations. Requires Bootstrap, css only (no Bootstrap JS or jQuery needed).
Angular-duration-picker-component

Installation

installing component form NPM.

npm install --save ngx-duration-picker




Then in your app.module.ts add DurationPickerModule between your imports:

@NgModule({
  declarations: [...],
  imports: [
    DurationPickerModule,
    ...
  ],
  providers: [...],
  bootstrap: [AppComponent]
})
export class AppModule { }

Local development

  • On one terminal tab run ng build ngx-duration-picker --watch. This will build the library sources (projects/ngx-duration-picker var wpcf7 = {"api":{"root":"http:\/\/iamrohit.in\/wp-json\/","namespace":"contact-form-7\/v1"},"cached":"1"};