Last active
December 26, 2019 17:59
-
-
Save IntegerMan/8735f93060d61811ea858912502924b9 to your computer and use it in GitHub Desktop.
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
<div class="mt-4"> | |
<p>Enter two numbers and click a mathematical operation to calculate the result</p> | |
</div> | |
<div class="mt-4"> | |
<div class="input-group"> | |
<label> | |
X: | |
<input type="text" [(ngModel)]="XValue"> | |
</label> | |
</div> | |
<div class="input-group"> | |
<label> | |
Y: | |
<input type="text" [(ngModel)]="YValue"> | |
</label> | |
</div> | |
</div> | |
<div class="btn-group mt-4" role="group" aria-label="Math Operations"> | |
<button class="btn btn-outline-primary" (click)="onAddClick()">Add</button> | |
<button class="btn btn-outline-primary" (click)="onSubClick()">Subtract</button> | |
<button class="btn btn-outline-primary" (click)="onMultClick()">Multiply</button> | |
<button class="btn btn-outline-primary" (click)="onDivClick()">Divide</button> | |
<button class="btn btn-outline-primary" (click)="onPowClick()">Exponent</button> | |
</div> | |
<div class="mt-4"> | |
<p class="text-success">{{Results}}</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment