import { Component } from '@angular/core' ; title @ Component ( { selector : 'datepicker-filter-example' , templateUrl : 'datepicker-filter-example.html' , styleUrls : [ 'datepicker-filter-example.css' ] , } ) export class DatepickerFilterExample { myFilter = ( d ) : boolean => { const day = d . getDay ( ) ; return day !== 0 && day !== 6 ; } ; }