|
import { Component, ViewEncapsulation,ViewChild, Inject } from '@angular/core';
import { DatePickerComponent, FocusEventArgs } from '@syncfusion/ej2-angular-calendars';
@Component({
selector: 'app-root',
styleUrls: ['app.component.css'],
templateUrl: 'app.component.html',
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
@ViewChild('default')
public datepickerObj: DatePickerComponent;
onFocus(args: FocusEventArgs): void {
this.datepickerObj.show();
}
}
|
|
"angularCompilerOptions": {
"strictTemplates": true,
"strictOutputEventTypes": false
} |