angulartypescriptng-bootstrapngx-bootstrap

ngx-datepicker header empty


I am trying to use ngx-datepicker but whatever I do am getting the header(datepicker navigation section) empty.

expected outcome:

enter image description here

current result:

enter image description here
enter image description here

my date picker component code:

Edit:
here is a minimal reproduction of the issue:
https://stackblitz.com/edit/angular-ivy-w83mcv?file=src/app/app.component.ts


Solution

  • solved after running npm install @angular/localize
    then adding import '@angular/localize/init'; to polyfills.ts