Saturday, 29 August 2015

How to initiate variable in AngularJS?

<div ng-app="" ng-init="quantity=10;cost=5">
             <b>Total Cost: {{ quantity * cost }}</b>
         </div>

No comments:

Post a Comment