I have this piece of code:
$scope.GetEmp= function () {
$http.get("/api/emp/GetEmps")
.success(function (data) {
$scope.Emps= data;
hideLoader();
})
.error(function (error) {
$scope.operation_result = { result: false, Message: 'Unable to complete the action due to API problem' };
$scope.show_result = true;
hideLoader();
});
};
That Method return this: [["1","Elmer Chacon"],["2","Juan Perez"],["3","Mauricio Lopez"]]
How can I populate a dropdown with this kind of data?
Thanks in advance.