我想显示我的$ scope.propertieCible
我的js代码:
$scope.on_edit_unit = function (unit) {
PropertiesService.getPropertiesMergedWithModel("properties#" + $scope.application.name + "#" + $scope.application.version + "#" + $scope.platform + "#" + unit.name, unit.modelNamespaces).then(function (properties) {
propertiesSources = properties;
});
PropertiesService.getPropertiesMergedWithModel("properties#" + $scope.applicationCible.name + "#" + $scope.applicationCible.version + "#" + $scope.platform + "#" + unit.name, unit.modelNamespaces).then(function (propertiesCible) {
$scope.propertiesCible = propertiesCible;
});
console.log($scope.propertieCible);
};
为什么我的控制台日志中有'未定义'?