1
コンソールログの出力がコンソールログの外部と異なるのはなぜですか?
と同じである必要があります。
私が探しているのは、firebaseストレージに保存されているファイルのURLを取得することです。
angularjs firebase storage getDownloadURLは未定義を返しますが、存在します
var url = spaceRef.getDownloadURL()
.then(function(url){
//$scope.avatar = url;
console.log("inside:", url);
return url;
//console.log(url);
})
.catch(function(error) {
$scope.errMsg = true;
$scope.errorMessage = error.message;
});
console.log("outside:", url);