Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(datepicker): There is a way of use datepickers in reactives forms? #893

Closed
jlberrocal opened this issue Aug 25, 2016 · 24 comments
Closed

Comments

@jlberrocal
Copy link

Actually i need to use validators on each form, so i was wondering if there is a way of use FormControl instead of ngModel, thanks in advance.

@sublime392
Copy link
Contributor

I also have this problem.

@Martin-Luft
Copy link
Contributor

I think this is related to #893 and #959

@Martin-Luft
Copy link
Contributor

#1023

@Kosmonaft
Copy link

Is there a way to use datepicker in reactive form?

@sioquim
Copy link

sioquim commented Oct 7, 2016

Actually i need to use validators on each form, so i was wondering if there
is a way of use FormControl instead of ngModel, thanks in advance.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#893

@valorkin valorkin changed the title There is a way of use datepickers in reactives forms? feat(datepicker): There is a way of use datepickers in reactives forms? Oct 13, 2016
@sublime392
Copy link
Contributor

+1

@GuskiS
Copy link

GuskiS commented Nov 17, 2016

I need this too. :(

@sublime392
Copy link
Contributor

@GuskiS If you need a workaround: I had to pull in the PrimeNG library to get a datepicker I can use with reactive forms.

@GuskiS
Copy link

GuskiS commented Nov 18, 2016

@iherbivore Thanks, I will look into.

@GuskiS
Copy link

GuskiS commented Dec 7, 2016

Sweet, any ideas when this gonna be NPM?

@valorkin
Copy link
Member

valorkin commented Dec 7, 2016

I need to add new injection service, to work with 2.2+

@valorkin
Copy link
Member

valorkin commented Dec 7, 2016

With out hacks

@glitchbane
Copy link

I'm anxious to see this change released as well, and there is the same issue with the typeahead control...

@valorkin
Copy link
Member

valorkin commented Jan 1, 2017

BTW date picker should work with reactive forms in latest versions
New injection service released, you can check popover implementation.

@GuskiS
Copy link

GuskiS commented Jan 1, 2017

I tried it in v1.1.16-7 and it wasn't working when used like this:

  <datepicker [formControlName]='field.name' [name]='field.name' ...></datepicker>

because name wasn't valid attribute for datepicker, but I need the name.

@valorkin
Copy link
Member

valorkin commented Jan 1, 2017

Update came somewhere 16-9+

@elmartino
Copy link

i want to use timepicker with formControlname="time", but get NaN as a value. Is this because it's not supported or i'm doing something wrong?

@stephsavoie
Copy link

Facing the same issue. If it's working with the newest version, so that would would be nice to have a working plunkr as example and updated documentation as well.

@touqeershafi
Copy link

<datepicker formControlName="license_expire_date" [formControl]="registerFormProvider.controls['license_expire_date']" name="license_expire_date"></datepicker>

throws: 'datepicker' is not a known element:

I'm also facing the same problem any solution to this ?

@xcesco
Copy link

xcesco commented Jul 3, 2017

Any news?

@valorkin
Copy link
Member

valorkin commented Jul 3, 2017

This week finishing modal service and time picker,
Starting from next week focus on finishing datepicker and Typeahead

@logickphp
Copy link

We need this feature!

@imadhy
Copy link

imadhy commented Nov 2, 2017

any news on this feature ?

@valorkin
Copy link
Member

valorkin commented Nov 2, 2017

Latest and @next versions has it for a long time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests