ng2-bootstrap-base-modified
Version:
Native Angular Bootstrap Components Typeahead modified
17 lines (13 loc) • 518 B
text/typescript
import { Component } from '@angular/core';
import { DropdownConfig } from 'ng2-bootstrap/dropdown';
// such override allows to keep some initial values
export function getDropdownConfig(): DropdownConfig {
return Object.assign(new DropdownConfig(), {autoClose: 'disabled', keyboardNav: true});
}
@Component({
selector: 'demo-dropdown-config',
templateUrl: './config.html',
providers: [{provide: DropdownConfig, useFactory: getDropdownConfig}]
})
export class DemoDropdownConfigComponent {
}