Skip to content

Input type='date' with ngModel bind to a Date() js object. #8203

@germanferrero

Description

@germanferrero

Hi, here it's the plunker. http://plnkr.co/edit/3ZDyWnabgp4S3m2rxJaX?p=preview

Current behavior
Input doesn't show the date at beginning (12-12-1900)
Only changing the year in input value myDate variable get refresh.

Expected/desired behavior
First, I would expect the input to show the correct date (12-12-1900).
And then myDate variable get refresh with any change in input.

Question
That's the way it worked on angular 1, isn't?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions