So having some inexperienced issues with angularjs select function. lol So i have a vehicle program that get info of your car. I have three select options. Make, Model, and Year. I grabbing all this info from a JSON Server. The 'Make' input shows all the car makes (every Make object has a model object). The 'Model' input shows all the models for the Make that the user has chosen. I dont know how to grab the data of the Make and show all the Models for that Make. (and then the Year).
HTML
<label class="item item-input item-select">
<div class="input-label">
Make
</div>
<select ng-model="make" ng-options="item.name for item in items.makes">
</select>
</label>
JS
.controller('MilesCtrl', function($scope, vehicle, x2js, $http) {
/////////MY VEHICLE///////////
$scope.formData = {};
vehicle.getCar().then(function(data){
console.log(data.data);
$scope.items = data.data;
});
});