$scope.modelTmp = {
        appData.getAppDataItem({'@key': 'last_news_sync_date'}).then( function (x) {
                    $scope.modelTmp.useMobileDataTmp = x; })
        console.log($scope.modelTmp.useMobileDataTmp);
I want to assign x to useMobileData. Please help me to do it.
 
     
    