title: how to change default value of ngx-daterangepicker-material?
body: <p>I am working on project and I found some difficulties in ngx-daterangepicker-material  I want to change the default value of the calendar. it shows Today by default , I want to change it to Last 30 days (please see the picture below). I changed this.selectedDay in the constrictor but it doesnt work.
  Could anyone has any solution how to change the Today label to Last 30 days !
  Here is it my code</p>
  <p>html file</p>
  <pre><code> &lt;div class=&quot;row&quot;&gt;
          &lt;div class=&quot;col s6&quot;&gt;
          &lt;input type=&quot;text&quot;
          ngxDaterangepickerMd
          [(ngModel)]=&quot;selected&quot;
          [showCustomRangeLabel]=&quot;true&quot;
          [alwaysShowCalendars]=&quot;alwaysShowCalendars&quot;
          [ranges]=&quot;ranges&quot;
          [showClearButton]=&quot;true&quot;
          [showCancel]=&quot;true&quot;
          [linkedCalendars]=&quot;true&quot;
          [isTooltipDate] = &quot;isTooltipDate&quot;
          [isInvalidDate] = &quot;isInvalidDate&quot;
          [locale]=&quot;{applyLabel: 'Done'}&quot;
          (rangeClicked)=&quot;rangeClicked($event)&quot;
          (datesUpdated)=&quot;datesUpdated($event)&quot;
          [keepCalendarOpeningWithRange]=&quot;keepCalendarOpeningWithRange&quot;
          [showRangeLabelOnInput]=&quot;showRangeLabelOnInput&quot;
          class=&quot;form-control&quot;
          placeholder=&quot;Select please...&quot;/&gt;
        &lt;/div&gt;
        &lt;div class=&quot;col s6&quot;&gt;
          &lt;br/&gt;
          &lt;strong&gt;Model: &lt;/strong&gt;
          &lt;br/&gt; {{selected | json  }}
          &lt;br&gt; 
  </code></pre>
  <p>ts file</p>
  <pre><code>export class CustomRangesComponent implements OnInit {
    selected: any;
    alwaysShowCalendars: boolean;
    showRangeLabelOnInput: boolean;
    keepCalendarOpeningWithRange: boolean;
    maxDate: dayjs.Dayjs;
    minDate: dayjs.Dayjs;
    invalidDates: dayjs.Dayjs[] = [];
    tooltips = [
      {date: dayjs(), text: 'Today is just unselectable'},
      {date:  dayjs().add(2, 'days'), text: 'Yeeeees!!!'}
    ];
    inlineDateTime;
    ranges: any = {
      Today: [dayjs(), dayjs()],
      Yesterday: [dayjs().subtract(1, 'days'), dayjs().subtract(1, 'days')],
      'Last 7 Days': [dayjs().subtract(6, 'days'), dayjs()],
      'Last 30 Days': [dayjs().subtract(29, 'days'), dayjs()],
      'This Month': [dayjs().startOf('month'), dayjs().endOf('month')],
      'Last Month': [
        dayjs()
          .subtract(1, 'month')
          .startOf('month'),
        dayjs()
          .subtract(1, 'month')
          .endOf('month')
      ],
      'Last 3 Month': [
        dayjs()
          .subtract(3, 'month')
          .startOf('month'),
        dayjs()
          .subtract(1, 'month')
          .endOf('month')
      ]
    };
  
    isInvalidDate = (m: dayjs.Dayjs) =&gt;  {
      return this.invalidDates.some(d =&gt; d.isSame(m, 'day') );
    }
    isTooltipDate = (m: dayjs.Dayjs) =&gt;  {
      const tooltip = this.tooltips.find(tt =&gt; tt.date.isSame(m, 'day'));
      if (tooltip) {
        return tooltip.text;
      } else {
        return false;
      }
    }
  
    constructor() {
      this.maxDate = dayjs().add(2,  'weeks');
      this.minDate = dayjs().subtract(3, 'days');
  
      this.alwaysShowCalendars = true;
      this.keepCalendarOpeningWithRange = true;
      this.showRangeLabelOnInput = true;
      this.selected = {
        startDate: dayjs().subtract(1, 'days').set('hours', 0).set('minutes', 0),
        endDate: dayjs().subtract(1, 'days').set('hours', 23).set('minutes', 59)
      };
    }
    rangeClicked(range) {
      console.log('[rangeClicked] range is : ', range);
    }
    datesUpdated(range) {
      console.log('[datesUpdated] range is : ', range);
    }
  
    ngOnInit() {}
    choosedDateTime(e) {
      this.inlineDateTime = e;
    }
  } 
  </code></pre>
  <p><a href="https://i.stack.imgur.com/ygwDA.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>Could anyone help me to do that!</p>