controller.js
$scope.buildings={};
for (var i=0;i<$scope.buildingObj.length;i++){
$scope.buildings.building=$scope.buildingObj[i].building;
console.log($scope.buildings.building);
}
In console am able to print $scope.buildings.building. Now I want to populate $scope.buildings in a combobox.
EDIT
$scope.buildings gives
[Object, Object, Object]
$scope.buildings.building gives as below
Tidel
Ascendas
Sun-Tech
How can I do this? Am new to AngularJS. pls help me get through this.
Thanks in advance.