I'm trying to get the return value "dataJson", but I got undefined exactly.
Would anyone tell my how can I do to get it??
thank you very much!
$scope.sendRequest = function (port) {
var dataJson;
$http({
method: "GET",
url: CCHK3AnalysisWebserviceUrl + `/Get` + port + `ForPC?PageSize=10000&PageCount=1&ConditionJson=` + CondtJson,
}).then(function (data) {
dataJson = $scope.parseData(data.data);
}, function (err) {
console.log(err)
})
return dataJson
}