How to use expressions in AngularJS

1 Answer

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

<div ng-app="">
<p>expression a: {{ 3 + 9 }}</p>
<p>expression b: {{ 3 * 9 }}</p>
<p>expression c: {{ 9 / 3 }}</p>
<p>expression d: {{ 9 - 3 }}</p>
</div>

</body>
</html>

<!--
run:

expression a: 12

expression b: 27

expression c: 3

expression d: 6

-->

 



answered May 16, 2017 by avibootz

Related questions

1 answer 420 views
1 answer 401 views
1 answer 523 views
2 answers 513 views
2 answers 502 views
2 answers 562 views
...