As a newcomer to Angular, I have a question about using JS variables in an AngularJS expression. I am unsure if it is even called an expression, but the concept I am trying to convey can be illustrated as follows:
<code>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script>
var number = 10;
</script>
<div ng-app="">
<p>Using my variable: {{ 5 + number}}</p>
</div>
</code>
Can anyone advise me on achieving this functionality?