Skip to content

Commit 7a87d47

Browse files
committed
added interpolation in vars
1 parent 26554fb commit 7a87d47

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/app/components/options-sidebar/time-clock/time-clock.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
</div>
1717

1818
<div class="card-body">
19-
<p *ngIf="!isClockIn" class="card-title text-left"><strong>Dario</strong> clocked <strong class="text-success">in</strong> at <strong>hh:mm:ss</strong></p>
20-
<p *ngIf="isClockIn" class="card-title text-left"><strong>Dario</strong> clocked <strong class="text-danger">out</strong> at <strong>hh:mm:ss</strong></p>
19+
<p *ngIf="!isClockIn" class="card-title text-left"><strong>{{ username }}</strong> clocked <strong class="text-success">in</strong> at <strong>{{ clockInUsername }}</strong></p>
20+
<p *ngIf="isClockIn" class="card-title text-left"><strong>{{ username }}</strong> clocked <strong class="text-danger">out</strong> at <strong>{{ clockOutUsername }}</strong></p>
2121
<h6 class="text-left"><strong>Totals</strong></h6>
2222
<hr>
2323
<div class="row">

src/app/components/options-sidebar/time-clock/time-clock.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import { Component, OnInit } from '@angular/core';
77
})
88
export class TimeClockComponent {
99

10+
username = 'Dario';
11+
clockInUsername = 'hh:mm:ss';
12+
clockOutUsername = 'hh:mm:ss';
13+
1014
isClockIn: boolean;
1115
isEnterTechnology: boolean;
1216
showAlertEnterTecnology: boolean;

0 commit comments

Comments
 (0)