Angular Material mat-datepicker (change) event and format

后端 未结 5 2113
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-18 20:42

I am using angular material datepicker directive and I have few problems.

1. When I open date picker dialog and select any date, date shows up in i

5条回答
  •  执笔经年
    2020-12-18 21:07

    from docs you can use one of the below events based on your requirement

    @Output()
    dateChange(): EventEmitter>
    

    Emits when a change event is fired on this .

    @Output()
    dateInput(): EventEmitter>
    

    Emits when an input event is fired on this .

    For example:

    
    

    or

     
    

提交回复
热议问题