Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

DateTimePicker Derictive not working in Angular 5 #4328


User avatar
0
simedbn created

Hello,

<input type="datetime" datePicker [(selectedDate)]="user.startDate" name="startDate" class="form-control"/>

the value in the input is not reflected in the user.startDate ?

user.startDate = undef ?

Any idea please.


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @simedbn,

    Please make this change on your project and it will work <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/commit/fdd94cebdab988fd0773fafb1c56425053e314c3">https://github.com/aspnetzero/aspnet-ze ... 5053e314c3</a>.

  • User Avatar
    0
    simedbn created

    Hello @ismcagdas,

    I have already make the changes in datepicker component but the date selected not set in the value of the model :

    <input datePicker type="datetime" [(selectedDate)]="user.startDate" name="startDate" class="form-control"/>

    after i choose a date the text in the input is correct for exemple : 12/12/2017 but the value in user.startDate is undefined.

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @simedbn,

    I have reopened the issue <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/647">https://github.com/aspnetzero/aspnet-ze ... issues/647</a> and we will fix it soon.

    Thanks for reporting it.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @simedbn,

    It is fixed now, can you check ?

  • User Avatar
    0
    simedbn created

    Hello ismcagdas,

    It's work :) Thank you.