The following is the JSON I'm trying to parse:
{[{"name":"Technology"},{"name":"Engineering"},{"name":"Business"}]}
I get an error message below:
Unexpected token [ in JSON at position 1 at JSON.parse (<anonymous>) at fromJson
I get data from the service and save it in the controller area using the following:
vm = this; vm.sectorList = response.data;
And my HTML:
<div ng-repeat="sector in ctrl.sectorList"> {{sector.name}} </div>
source share