Skip to content

Instantly share code, notes, and snippets.

@skd1993
Created September 16, 2018 13:54
Show Gist options
  • Save skd1993/2c97371f8fc6019383957d1906ac2e3e to your computer and use it in GitHub Desktop.
Save skd1993/2c97371f8fc6019383957d1906ac2e3e to your computer and use it in GitHub Desktop.
rent-list.component.html
<div class="row">
<div class="input-field col s6">
<input [(ngModel)]="meterCurr" name="meterCurr" type="number">
<label class="active" for="meterCurr">meter curr</label>
</div>
<div class="input-field col s6">
<input [(ngModel)]="paid" name="paid" type="number">
<label class="active" for="paid">paid</label>
</div>
<div class="input-field col s6">
<input [(ngModel)]="extraCost" name="extraCost" type="number">
<label class="active" for="extraCost">extra cost</label>
</div>
<div class="col s12 m12">
<p>curr: {{meterCurr}}</p>
<p>prev: {{meterPrev}}</p>
<p>paid: {{paid}}</p>
<p>extras: {{extraCost}}</p>
<p>Total: {{total}}</p>
<p>Due: {{total-paid}}</p>
<button class="btn waves-effect waves-light" type="submit" name="action" (click)="submit()">Submit</button>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment