Skip to content
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
@adtanre

Description

@adtanre

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions