$ scope中的未定义对象

时间:2014-11-07 10:34:37

标签: javascript angularjs

我想显示我的$ 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);
};

为什么我的控制台日志中有'未定义'?

0 个答案:

没有答案