I want to use datepicker from ng-bootstrap package: https://ng-bootstrap.github.io/#/components/datepicker/overview
Is there any way to install only the datepicker and its dependencies instead of all the package?
You can't install only the datepicker, but you can import only the datepicker in your project.
The ng-boostrap exports all the sub modules, if you want to use only the datepicker you can import only the datepicker :
...
import { NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
...
@NgModule({
imports: [..., NgbDatepickerModule.forRoot()],
...
When you will build your project, only this module from ng-bootstrap will be added to your bundle.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With