Académique Documents
Professionnel Documents
Culture Documents
Step 3: tenant.template.html
-----------------------------
<ng-template #notenants>
<h3>There are no tenants in the system</h3>
</ng-template>
this.totalBalance: number;
getTotalBalance (){
this.totalBalance = this.clients.reduce(function(accumulator, currentValue){
return accumulator.balance + currentValue.balance;
},0);
}
Step 3: tenant.template.html
-----------------------------
<div class='container'>
<div class="col-md-6">
<h5><i class="fa fa-users">Tenants</h5>
</div class="col-md-6">
<div class="col-md-6">
<h5 class="pull-right text-muted">total Balance{{totalBalance |
currency:"USD":true }}</h5>
</div class="col-md-6">
</div>