MCPcopy Create free account
hub / github.com/angular/components / constructor

Method constructor

src/dev-app/datepicker/datepicker-demo.ts:218–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216 comparisonEnd: Date;
217
218 constructor() {
219 const today = new Date();
220 const year = today.getFullYear();
221 const month = today.getMonth();
222 this.comparisonStart = new Date(year, month, 9);
223 this.comparisonEnd = new Date(year, month, 13);
224 }
225
226 dateFilter: (date: Date | null) => boolean = (date: Date | null) => {
227 if (date === null) {

Callers

nothing calls this directly

Calls 1

getMonthMethod · 0.45

Tested by

no test coverage detected