- /
- Solutions techniques
- /
- Intégration de ngx-bootstrap Datepicker sur angular 7+
Intégration de ngx-bootstrap Datepicker sur angular 7+
- Angular, ngx-bootstrap, Datepicker
- Développement front-end
Installer Bootstrap
Sur le fichier angular.json ajouter ce code
Sur le fichier app.module.ts ajouter ce code
Sur le composant .html ajouter ce code
[bsConfig]="{ isAnimated: true }"
Avec animation
[bsConfig]="{ adaptivePosition: true }"
Adaptation de position
[bsConfig]="{ dateInputFormat: 'YYYY-MM-DD' }"
Format de la date