Home How to Make Loop in Angular JS
Reply: 0

How to Make Loop in Angular JS

user617 Published in June 18, 2018, 7:33 am

I am new to angular Js How can I loop same ng-model?

I get that example on w3schools

<!DOCTYPE html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>

<div data-ng-app="" data-ng-init="price=5">

<h2>Cost Calculator</h2>

Price: <input type="number" ng-model="price">
        <input type="number" ng-model="price">

<p><b>Total in dollar:</b> {{price+price}}</p>


You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.351489 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO