As a beginner, i need a help from an expert…
After Clicking the button…the value is not showing…
but it shows …
only when i change value of share percentage after execution…
after i change the value of share percentage… it displays the result…
here’s my code
<ion-pane>
<ion-header-bar align-title="center" class="bar-positive">
<center><h1 class="title">Share Calculator</h1></center>
</ion-header-bar>
<ion-content>
<div class="list">
<label class="item item-input item-stacked-label">
<span class="input-label">Company's value</span>
<input type="number" placeholder="100000" ng-model="a">
</label>
<label class="item item-input item-stacked-label">
<span class="input-label">Your Inestment </span>
<input type="number" placeholder="35000" ng-model="b">
</label>
<label class="item item-input item-stacked-label">
<span class="input-label">Company's Profit</span>
<input type="number" placeholder="250000" ng-model="c">
</label>
<label class="item item-input item-stacked-label">
<span class="input-label">Share Percentage</span>
<input type="number" placeholder="25%" value="{{b*100/a}}" ng-model="d">
</label>
</div>
<center>
<button class="button button-balanced" ng-click="Rs=d*c/100" ng-init="Rs=0">Calculate Share </button>
<p>My Share Profit: {{Rs}} </p>
</center>
</ion-content>
</ion-pane>