Nguồn là 1 json
1. PhongBan: MaPB , TenPhongBan
2. NhanVien: MaNhanVien, MaPB , ChucVu
<div ng-repeat="pb in PhongBan">
{{pb.MaPB}}" {{pb.TenPhongBan}}
<div ng-repeat="nhanvien in NhanVien| filter: {MaPB:pb.MaPB}">
{{$index+1}} {{nhanvien.MaNhanVien}}
</div>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('customersCtrl', function($scope, $http) {
$http.get("/Adminxml/Query_Do.aspx?name=TEN&out=json")
.then(function (response) {
$scope.PhongBan =response.data.Q1;
$scope.NhanVien =response.data.Q2;
});
});
</script>