Popular posts from this blog
Session 4 Services
Exercise 1.4 : Accessing the Backend
*******************************index.html***************************** <div ng-app="invoice3" ng-controller="InvoiceController as invoice"> <b>Invoice:</b> <div> Quantity: <input type="number" min="0" ng-model="invoice.qty" required > </div> <div> Costs: <input type="number" min="0" ng-model="invoice.cost" required > <select ng-model="invoice.inCurr"> <option ng-repeat="c in invoice.currencies">{{c}}</option> </select> </div> <div> <b>Total:</b> <span ng-repeat="c in invoice.currencies"> {{invoice.total(c) | currency:c}} </span><br> <button class="btn" ng-click="invoice.pay()">Pay</button> </div> </div> ****************************...
Comments
Post a Comment