Showing 2 of 3 total issues
Function getOverlayConfig
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private getOverlayConfig(config: CalendarOverlayConfig): OverlayConfig {
const positionStrategy = this.overlay
.position()
.flexibleConnectedTo(this.hostElemRef)
.withFlexibleDimensions(false)
Function setupPresets
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setupPresets() {
const backDate = numOfDays => {
// tslint:disable no-shadowed-variable
const today = new Date();
return new Date(today.setDate(today.getDate() - numOfDays));