我在我的poc中使用ng2-datepicker。哪个事件将在模型更改时触发?我尝试(更改),(onModelChange),(selectedChanged),但这些都无法正常工作。
在html中我使用
// public store_service_data:any=[];
// for adding datepicker support file start here
date: DateModel;
options: DatePickerOptions;
// for adding datepicker support file end here
constructor(private configservice:ConfigService) {}
ngOnInit(){
this.configservice.get_service_data();
this.options = new DatePickerOptions();
this.firstdrpdwn=true;
this.seconddrpdwn=true;
this.thirddrpdwn=true;
this.fourthdrpdwn=true;
}
ts文件中的
>>>df.head()
Out:
Conn_ses
DateTime
2018-07-02 14:46:08 332
2018-07-02 15:00:53 328
2018-07-02 15:05:53 324
2018-07-02 15:10:53 326
2018-07-02 15:15:53 326