Ngx-bootstrap: ngx datepicker inline value fetch in reactive form, using bs-datepicker-inline

Created on 23 Jul 2019  路  4Comments  路  Source: valor-software/ngx-bootstrap

Before opening an issue, please search for duplicates (opened and closed)
https://github.com/valor-software/ngx-bootstrap/issues
There's no need to open an issue here if you want to ask general question, use StackOverflow or Slack instead

Bug description or feature request:

Plunker/StackBlitz that reproduces the issue:

Using Plunkr, StackBlitz is the best way to show your issue. Issues without link to an example of reproduction might be closed.

You can use one of starter templates:

Plunkr: https://plnkr.co/edit/0NipkZrnckZZROAcnjzB?p=preview

StackBlitz: https://stackblitz.com/edit/ngx-bootstrap?file=app%2Fapp.module.ts

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap:

Angular:

Bootstrap:

Build system: Angular CLI, System.js, webpack, starter seed:

comp(datepicker) info reproduce question

Most helpful comment

+1

Inline datepicker not providing functionality for reactive forms e.g. form control. This issue was created in 2019... still not working in '20!

All 4 comments

@tanumoy88 For now, this issue is not clear. Could you please, add more info and reproduction on Stackblitz if you want to describe some problem.

@ludmilanesvitiy thank you for reply. I am using ngx-bootstrap inline datepicker. but I am not able to get value from this either using template driven form using ngModel or using reactive form with formcontrolname, its throwing error and and also value is not retrieving by using ngModel and formControlName. Now how to get value using either any of this.

+1

Inline datepicker not providing functionality for reactive forms e.g. form control. This issue was created in 2019... still not working in '20!

having the same issue


      <bs-datepicker-inline class="d-flex flex-grow-1"
                            ngDefaultControl
                            formControlName="startDate"></bs-datepicker-inline>

does not work...
when using

      <bs-datepicker-inline class="d-flex flex-grow-1"
                            formControlName="startDate"></bs-datepicker-inline>

im getting error

No value accessor for form control with name: 'startDate'
Was this page helpful?
0 / 5 - 0 ratings

Related issues

tuoitrexuquang picture tuoitrexuquang  路  3Comments

Scooviese picture Scooviese  路  3Comments

srjkrl20011991 picture srjkrl20011991  路  3Comments

pgeyman picture pgeyman  路  3Comments

haisaco picture haisaco  路  3Comments