I am trying to use bootstrap selectpicker in my angular2 application. I have loaded jquery and bootstrap-select scripts in angular-cli.json.
This is my app-component.ts
import $ from 'jquery';
ngOnInit() {
$('.selectpicker').selectpicker('refresh');
}
But, I am getting this error.
__WEBPACK_IMPORTED_MODULE_2_jquery___default(...)(...).selectpicker is not a function.
I am new to angular2. Please help!