Skip to content

Commit 57e6315

Browse files
committed
Simplified code
1 parent c0f8918 commit 57e6315

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/app/app.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ <h3>Select audio</h3>
2626
(pointsEmitter)="updatePoints($event)">
2727
</waveform-view>
2828

29-
<segments-list [segments]="segments"></segments-list>
30-
<points-list [points]="points"></points-list>
29+
<segments-list [segments]="segments" *ngIf="segments.length > 0"></segments-list>
30+
<points-list [points]="points" *ngIf="points.length > 0"></points-list>
3131
</div>

src/app/points-list/points-list.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<h3 *ngIf="points.length > 0">Points</h3>
1+
<h3>Points</h3>
22

3-
<table class="table table-striped" *ngIf="points.length > 0">
3+
<table class="table table-striped">
44
<thead>
55
<tr>
66
<th scope="col">ID</th>

src/app/segments-list/segments-list.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<h3 *ngIf="segments.length > 0">Segments</h3>
1+
<h3>Segments</h3>
22

3-
<table class="table table-striped" *ngIf="segments.length > 0">
3+
<table class="table table-striped">
44
<thead>
55
<tr>
66
<th scope="col">ID</th>

0 commit comments

Comments
 (0)