JavaScript
var myApp = angular.module('myApp',[]);
function MyCtrl($scope) {
$scope.obj1 = [];
$scope.obj2 = [];
$scope.obj1.push({
buCode: "1000",
deptCode: "1201",
brandCode: null,
prodType: 'C',
cardType: "22",
style: null,
discPer: 10
},{
buCode: "1000",
deptCode: "1201",
brandCode: null,
prodType: 'C',
cardType: "24",
style: null,
discPer: 20
},{
buCode: "1000",
deptCode: "1201",
brandCode: null,
prodType: 'C',
cardType: "80",
style: null,
discPer: 15
});
$scope.obj2.push({
buCode: "1000",
deptCode: "1201",
brandCode: null,
prodType: 'C',
cardType: "81",
style: null,
discPer: 10
},{
buCode: "1000",
deptCode: "1201",
brandCode: null,
prodType: 'C',
cardType: "24",
style: null,
discPer: 20
},{
buCode: "1000",
deptCode: "1201",
brandCode: null,
prodType: 'C',
cardType: "80",
style: null,
discPer: 15
},{
buCode: "1000",
deptCode: "1201",
brandCode: null,
prodType: 'C',
cardType: "81",
style: null,
discPer: 8
},{
buCode: "1000",
deptCode: "1201",
brandCode: null,
prodType: 'C',
cardType: "83",
style: null,
discPer: 25
},{
buCode: "1000",
deptCode: "1201",
brandCode: null,
prodType: 'C',
cardType: "84",
style: null,
discPer: 30
});
console.log($scope.obj1);
console.log($scope.obj2);
}