Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
视图上的属性不会更新。当我单击删除图像时,会出现一个弹出模型。删除 index.html 上的图像:
属性 {{naam}} 未更新,setName 已更新名称...
如果您使用 angular ui bootstrap,在您的$scope.open();函数中,只需添加:
$scope.open();
resolve: { naam: function () { return $scope.naam; } }
然后在您的模态控制器中,注入 anaam和 add $scope.naam = naam,它应该这样做。
naam
$scope.naam = naam