This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Multiple expressions in the same tag are not evaluated #8646
Closed
Description
1.3.0-beta.15 and earlier
Multiple expressions in the same tag are evaluated normally.
<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.15/angular.min.js"></script>
</head>
<body>
<p>{{1+1}} {{2+2}}</p>
</body>
</html>
Output: 2 4
<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.15/angular.min.js"></script>
</head>
<body>
<p><span>{{1+1}}</span> <span>{{2+2}}</span></p>
</body>
</html>
Output: 2 4
1.3.0-beta.16 and later
Multiple expressions in the same tag are not evaluated (except when they are in separate tags).
<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.min.js"></script>
</head>
<body>
<p>{{1+1}} {{2+2}}</p>
</body>
</html>
Output: {{1+1}} {{2+2}}
<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.16/angular.min.js"></script>
</head>
<body>
<p><span>{{1+1}}</span> <span>{{2+2}}</span></p>
</body>
</html>
Output: 2 4
Is this change intentional? It is not mentioned in the 1.3.0-beta.16 changelog.