私は工場出荷時に条件付きのデータを取得しています。私が欲しいのは、条件を変えて工場を更新する必要があるときです。スコープ変更時にAngualrjが工場から値を取得
$scope.format=1;
homefact.get_download_format($scope.format).then(function (response) {
$scope.download = response;
});
//watch scople format
$scope.$watch("format", function (newValue, oldValue) {
if ($scope.format === 1) {
//recall the get_donwload_format here with new value
} else {
//recall the get_donwload_format here with new value
}
});
ありがとうございます!
? – anoop
ハハはそれを手に入れました。ありがとう男 –