Need help with a formula calculation. I have the value for net worth, but I am having trouble iterating over the EPS values and multiplying them by the shares held. Can anyone suggest a solution? Thank you! You can find the Plunker here
<div>
<h3>P/E Ratio: {{getNetWorth())}}
</div>
Here is the script snippet:
$http.get('data.json').then(function(response) {
$scope.stocksArray = [];
var indexes = [];
var epsindex = [];
var eps = {};
$scope.eps = response.data.eps;