-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9bb18b7
commit 6c4ee0d
Showing
3 changed files
with
84 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,48 @@ | ||
<h1> | ||
{{title}} | ||
</h1> | ||
<div class="container"> | ||
<h1>{{title}}</h1> | ||
<hr/> | ||
<form role="form" class="form-horizontal"> | ||
<div class="form-group"> | ||
<label class="col-md-2 control-label">Loan Amount</label> | ||
<div class="col-md-8"> | ||
<div class="input-group"> | ||
<input type="text" class="form-control" placeholder="Loan Amount" [(ngModel)]="loanAmount"> | ||
<span class="input-group-addon"> | ||
<i class="fa fa-inr"></i> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="col-md-2 control-label">Interest Rate</label> | ||
<div class="col-md-8"> | ||
<div class="input-group"> | ||
<input type="text" class="form-control" placeholder="Interest Rate" [(ngModel)]="interestRate"> | ||
<span class="input-group-addon bootstrap-touchspin-postfix">%</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="col-md-2 control-label">Loan Tenure (Months)</label> | ||
<div class="col-md-8"> | ||
<input type="text" class="form-control" placeholder="Loan Tenure (Months)" [(ngModel)]="loanTenure"> | ||
<!--<div class="input-group">--> | ||
<!----> | ||
<!--</div>--> | ||
</div> | ||
|
||
</div> | ||
<button (click)="calculateEmi()">Click Me</button> | ||
</form> | ||
<hr/> | ||
<div class="row" *ngIf="emi"> | ||
<div class="col-xs-4">Loan EMI</div> | ||
<div class="col-xs-4">Total Interest Payable</div> | ||
<div class="col-xs-4">Total Payment (Principal + Interest)</div> | ||
</div> | ||
<div class="row" *ngIf="emi"> | ||
<div class="col-xs-4">{{emi}}</div> | ||
<div class="col-xs-4">{{emi*loanTenure - loanAmount}}</div> | ||
<div class="col-xs-4">{{emi*loanTenure}}</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters