Home How to Make Loop in Angular JS
Reply: 0

How to Make Loop in Angular JS

user4743
1#
user4743 Published in September 21, 2018, 8:47 am

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

I get that example on w3schools

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

<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>

</div>

</body>
</html>
share|improve this question

1 Answer 1

active oldest votes
up vote 1 down vote accepted
You need to login account before you can post.

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

© 2016 Powered by mzan.com design MATCHINFO