AngularJS calculate

AngularJS does operations like "*", "/", "+", "-" in correct order what we can see at this example. You have to remember setting Internet privilege for external scripts.
<!DOCTYPE html>
<html>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<body>
<div ng-app="">
	<p>Result: {{ (2 + 2 * 2)/6 }}</p>
</div>
</body>
</html>

Responses

0 Replies