$scope.lead = [
{name: 'raj', email:'raj@gmail.com'}
];
$scope.contact=[
{name: 'James', email:'james@gmail.com'}
];
答案 0 :(得分:0)
与JS本身相比,看起来与JS更相关。
$scope.lead = [{name: 'raj', email:'raj@gmail.com'}];
$scope.contact =[{name: 'James', email:'james@gmail.com'}];
$scope.all = {};
$scope.all.lead = $scope.lead;
$scope.all.contact = $scope.contact;
console.log(JSON.stringify($scope.all))