这是我的HTML
<div class="col-sm-3">
<div class="form-group ">
<label class="control-label col-md-12">Branch of Service</label>
<div class="col-md-12" ng-bind-html="branch_of_service" > </div>
<!--<div class="col-md-9" > </div>-->
</div>
</div>
这是用于角度JS的控制器
$scope.changeBranchOfService= function(element) {
//console.log($(element).val());
$scope.formData.applicationinfo.branch_of_service=$(element).val();
};
这是PHP的控制器
$data['branch_of_service'] =
getSelectCombo(
$tblName = "cbx_branch_of_service",
$cboxName = "branchOfService",
$optionValue = "branch_service_id",
$optionTxt = "value",
$classes = "form-control",
$id = 'branchOfService',
$model='formData.applicationinfo.branch_of_service',
$attributes = "onchange='angular.element(this).scope().changeBranchOfService(this)'",
$selectedVal = ($guest['service_branch_id']) ? $guest['service_branch_id'] : set_value('service_branch_id'),
$whereCond = '',
$whereField = '',
$showDefaultSelectValue = "true"
);
现在ChangeBranchOfService函数既没有调用也没有NG模型工作我是角色的新手 提前致谢