Skip to content

Commit

Permalink
refactor(time-picker): fix lint errors #6482
Browse files Browse the repository at this point in the history
  • Loading branch information
PlamenaMiteva committed Apr 16, 2021
1 parent ef058be commit c82f73c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/time-picker/time-picker.sample.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Component, ViewChild, AfterViewInit } from '@angular/core';
import { IgxTimePickerComponent, PickerInteractionMode, IgxInputDirective, AutoPositionStrategy, OverlaySettings, DatePart } from 'igniteui-angular';
import { IgxTimePickerComponent,
PickerInteractionMode,
IgxInputDirective,
AutoPositionStrategy,
OverlaySettings,
DatePart } from 'igniteui-angular';

@Component({
selector: 'app-time-picker-sample',
Expand Down Expand Up @@ -41,7 +46,7 @@ export class TimePickerSampleComponent implements AfterViewInit {
// this.myOverlaySettings.target = this.target.nativeElement;
}

public showDate(date) {
public showDate() {
return this.tp.value ? this.tp.value.toLocaleString() : 'Value is null.';
}

Expand Down

0 comments on commit c82f73c

Please sign in to comment.