Trying to get json data. Originally created an ajax requests that works in a regular html page but not in my angular app so I decided to try the built in $http get function. I get no errors with this, however, my ajax data does not come in, though in console log it shows the GET worked.
My php displays an encoded json object array which shows up fine when i browse right to it.
My controller looks like:
apDash.controller('fieldopmgrController', function($scope,$http){
$http.get('protected/getHeadObs.php')
.success(function( data, status, headers, config ) {
$scope.flights = data.flightid;
});
});
My view looks like:
<div class="small-5 columns">
<label>Flight ID
<select name="fliID" class="radius">
<option ng-repeat="flight in flights">{{flight.flightid}}</option>
</select>
</label>
</div>
My json looks like:
image updated!

Again, i get absolutely no errors in my console log but yet my view does not work. Been toying with AngularJS for a few months but this is my first time im using the $http service. Any help with getting it to show up/advice on what im doing wrong would be great. Thanks in advance.