Closed lommez closed 6 years ago
I listen to (onChange) emitter and assign the value of it to my ngModel in component.ts file. This way I can display date in a particular format and send back to my server in the format needed.
Note: onnChange's $event
gives moment
object.
So now as of 0.1.0 is this ticket still valid? @fetrarij
The 0.1.0
is for form/ngModel . You can now use ngModel
and ngModelChange
instead of date
and onChange
When using something like this:
The ngModel will conflict with the date property and shows non formatted date.
Anyone have an example of how to make it work with a form and ngmodel directive in angular?