Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Last active December 26, 2019 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/8735f93060d61811ea858912502924b9 to your computer and use it in GitHub Desktop.
Save IntegerMan/8735f93060d61811ea858912502924b9 to your computer and use it in GitHub Desktop.
<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