for (let index = 0; index < shoppingCenters.length; index++) {
const mall = shoppingCenters[index];
locateAddress(mall);
}
$scope.locateAddress = function(mall) {}
XHTML
<ion-nav-buttons side="primary">
<button class="button" ng-click="locateAddress()">
Find My Location
</button>
</ion-nav-buttons>
<div id="map-container" data-tap-disabled="true"></div>
Hello, I am encountering an issue where I receive the following message when calling a function within my loop: ReferenceError: locateAddress is not defined.