0
這裏就是我在我的service.ts上傳和下載從火力存儲的Base64圖像angularfire2:^ 5.0.0-rc.2
import * as firebase from 'firebase/app';
getRetuarantImageformStorage(res, hotelName) {
this.storageRef = firebase.storage().ref().child('Restaurants/' + this.emailToKey(res.email) + '/' + hotelName);
return this.storageRef.getDownloadURL();
}
這我怎麼叫了裏面的方法也做我的組件
this.dataservice.getRetuarantImageformStorage("[email protected]", "shangri la");
我已經手動上傳圖像以上述給定的路徑在火力存儲
但是我有這個錯誤
ERROR TypeError: __WEBPACK_IMPORTED_MODULE_1_firebase_app__.storage is not a function
at handleDataService.webpackJsonp.38.handleDataService.getRetuarantImageformStorage (handleData.service.ts:105)
at Restaurants.ts:24
at Array.forEach (<anonymous>)
at SafeSubscriber._next (Restaurants.ts:23)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:238)
at SafeSubscriber.next (Subscriber.js:185)
at Subscriber._next (Subscriber.js:125)
at Subscriber.next (Subscriber.js:89)
at MapSubscriber._next (map.js:83)
at MapSubscriber.Subscriber.next (Subscriber.js:89)
...我已經尋找了一個清晰的文檔,但我沒有得到任何滿意的答覆。