ng2-datepicker
ng2-datepicker copied to clipboard
about @hotlistener
in the @Hotlistener we have the event e:MouseEvent => e.target ,when you are clicked over one day return this. <span _ngcontent-c6="" class="day-unit" ng-reflect-klass="day-unit" ng-reflect-ng-class="[object Object]"> 21 </span>
as object , but when you use and compare with thre property input we have to different result like <input _ngcontent-c6 class="ngx-datepicker-input ng-pristine ng-valid ng-touched" readonly type="text" ng-reflect-klass="ngx-datepicker-input" ng-reflect-ng-class="[object Object]" ng-reflect-ng-style="[object Object]" ng-reflect-model="Dez 21, 2018" placeholder id="datepicker-0">
as result of the const input = this.elementRef.nativeElement.querySelector('.ngx-datepicker-input');
both are total different kind of object . my question is how can i take the result direct for the "" like for comparing with the e.target . because each time when i make a event.emit( property) when i make click out of the number , the event emitter emit again the same date and make full of the array which the same date .