valor-software/ng2-bootstrap

View on GitHub
demo/src/app/components/+datepicker/demos/date-initial-state/date-initial-state.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Component } from '@angular/core';

@Component({
  selector: 'demo-datepicker-date-initial-state',
  templateUrl: './date-initial-state.html'
})
export class DemoDatepickerDateInitialStateComponent {
  bsValue = new Date();
  bsRangeValue: Date[];
  maxDate = new Date();
  constructor() {
    this.maxDate.setDate(this.maxDate.getDate() + 7);
    this.bsRangeValue = [this.bsValue, this.maxDate];
  }
}