Check out my HTML snippet:
<div ng-app='app'>
<div ng-controller="MyController" ng-init="myVar=7">
{{myVar}}
<span ng-init="myVar=myVar+5">{{myVar}},</span>
<span ng-init="myVar=myVar+15">{{myVar}},</span>
<span ng-init="myVar=myVar+37">{{myVar}},</span>
</div>
Also, here is the accompanying script:
var app = angular.module('app',[]);
app.controller('MyController', function() {});
The current output shows as 64,64,64,64
I'm aiming for an output like this: 7,12,27,64
I have been exploring options like ng-repeat but struggling to store values in an array.