Javascript AngularJS ng绑定未更新
很可能是因为Javascript AngularJS ng绑定未更新,javascript,angularjs,web-services,ng-bind,Javascript,Angularjs,Web Services,Ng Bind,很可能是因为ng bind=“rmCW.State.Name”而您的范围设置为其他属性 result.then(function (r) { $scope.$emit('UNLOAD'); if (r.status == 0) { var cs = JSON.parse(r.data) $scope.docState = cs; $scope.rmCW.Current = cs; } } 您需要将ng bind设置为ng
ng bind=“rmCW.State.Name”
而您的范围设置为其他属性
result.then(function (r) {
$scope.$emit('UNLOAD');
if (r.status == 0) {
var cs = JSON.parse(r.data)
$scope.docState = cs;
$scope.rmCW.Current = cs;
}
}
您需要将ng bind设置为
ng bind=“rCW.Current.Name”
,或者需要将$scope设置为$scope.rmCW.State=cs代码>Ty我最好去睡觉:)
result.then(function (r) {
$scope.$emit('UNLOAD');
if (r.status == 0) {
var cs = JSON.parse(r.data)
$scope.docState = cs;
$scope.rmCW.Current = cs;
}
}
$scope.rmCW.Current = cs;