【发布时间】:2014-06-21 20:02:29
【问题描述】:
实际上是从具有多个范围的注册表单发送数据,即(veh_register,noofpass,avilableData,foundedClass)......
每个作用域对象都有类似的数据 veh_register:{“vin”:vin89,“vplnum”:AR 890S,“uni”:proxu} noofpass : { noofpass : 900} 可用数据:{“类”:9009,“名称”:manish} 等等……这样的
然后如何将它们组合为单个范围对象以通过 $http.Post 发送它
这是清晰的代码............
AngularJs 中的控制器方法
$scope.vechicle_Register=function(veh_register,noofpass,availableData, 建立类,selectedOption1,selectedOption2){
**How to merge these veh_register+noofpass+avilableData+...........**
Into single Scope that send it from here to Target .........
$http.post("interface.php?action=sendVehRegDetails").then(function(result) {
$scope.year=result['data'];
});
}
【问题讨论】:
标签: php angularjs angularjs-directive angularjs-scope angularjs-ng-repeat