-
Notifications
You must be signed in to change notification settings - Fork 0
/
provincial-tax-view-v2.component.ts
34 lines (32 loc) · 1.16 KB
/
provincial-tax-view-v2.component.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { Component, Input } from '@angular/core';
import { Tax } from '../../models/taxes.model';
@Component({
selector: 'app-provincial-tax-view-v2',
styles: [`
.breadcrumb-item+.breadcrumb-item::before {
content: ">";
}
`],
template: `
<ng-template [ngIf]="tax">
<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a routerLink="/v2" class="text-decoration-none">Provinces</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ tax.province }}</li>
</ol>
</nav>
<div class="card">
<div class="card-header text-white bg-primary">Taxes in {{ tax.province }}</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">Province: {{ tax.province }}</li>
<li class="list-group-item">Tax Type: {{ tax.type }}</li>
<li class="list-group-item">GST: {{ tax.GST | percent }}</li>
<li class="list-group-item">PST: {{ tax.PST | percent }}</li>
</ul>
</div>
</ng-template>
`
})
export class ProvincialTaxViewComponent_V2 {
@Input() tax?: Tax;
}