ng-mat-daterange-picker
Version:
[](https://circleci.com/gh/ashishgkwd/ngx-mat-daterange-picker) [](https
32 lines (27 loc) • 678 B
text/typescript
import {
Component,
OnInit,
Output,
EventEmitter,
Input,
ChangeDetectionStrategy,
ViewEncapsulation
} from '@angular/core';
import { PresetItem } from '../model/model';
({
selector: 'mat-drp-presets',
templateUrl: './presets.component.html',
styleUrls: ['./presets.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class PresetsComponent implements OnInit {
()
presets: Array<PresetItem>;
()
readonly presetChanged: EventEmitter<any> = new EventEmitter<any>();
constructor() {}
ngOnInit() {}
setPresetPeriod(event) {
this.presetChanged.emit(event);
}
}