Variables in AngularJS expressions



examples/angular/variables_in_expressions.html
<script src="angular.min.js"></script>
<div ng-app>
  {{ x = 23; y= 19; x + y }}
</div>

We don't declare them with var as in plain JavaScript because they are actually attributes of the $scope object Angular maintains for us.