ng2-bootstrap-base-modified
Version:
Native Angular Bootstrap Components Typeahead modified
17 lines (13 loc) • 529 B
text/typescript
import { Component } from '@angular/core';
import { ProgressbarConfig } from 'ng2-bootstrap/progressbar';
// such override allows to keep some initial values
export function getProgressbarConfig(): ProgressbarConfig {
return Object.assign(new ProgressbarConfig(), {animate: false, max: 150});
}
@Component({
selector: 'demo-progressbar-config',
templateUrl: './config.html',
providers: [{provide: ProgressbarConfig, useFactory: getProgressbarConfig}]
})
export class DemoProgressbarConfigComponent {
}