Skip to content

Commit

Permalink
refactor (value): move calendar header HTML to template file
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schweizer committed Apr 8, 2020
1 parent 3a343dd commit d7e2127
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
@@ -1 +1,4 @@

<mat-select placeholder="Calendar" class="kui-calendar-header" [formControl]="formControl">
<mat-option *ngFor="let cal of supportedCalendars" [value]="cal">{{cal}}</mat-option>
</mat-select>
<mat-calendar-header></mat-calendar-header>
Expand Up @@ -5,16 +5,11 @@ import {JDNConvertibleCalendar} from 'jdnconvertiblecalendar';
import {MatCalendar, MatDatepickerContent} from '@angular/material/datepicker';
import {DateAdapter} from '@angular/material/core';
import {Component, Host, Inject, OnDestroy, OnInit} from '@angular/core';
import {Subscription} from "rxjs";
import {Subscription} from 'rxjs';

@Component({
selector: 'kui-calendar-header',
template: `
<mat-select placeholder="Calendar" class="kui-calendar-header" [formControl]="formControl">
<mat-option *ngFor="let cal of supportedCalendars" [value]="cal">{{cal}}</mat-option>
</mat-select>
<mat-calendar-header></mat-calendar-header>
`,
templateUrl: './calendar-header.component.html',
styleUrls: ['./calendar-header.component.scss']
})
export class CalendarHeaderComponent<D> implements OnInit, OnDestroy {
Expand Down

0 comments on commit d7e2127

Please sign in to comment.