cost 282 ms
異步 function 調用不會對父調用 function 產生任何結果

[英]Async function call not yielding any results to parent calling function

我正在嘗試檢索給定文檔 ID 的文檔字段值。 我已經解決了數據庫調用部分,但我無法將數據發送回去。 幾乎就好像根本沒有調用下面的 function this.userDbService.getVendorNameFromUserId 。 這是父級 function: 這是 function getV ...

從 Firebase 列表響應數組中獲取值

[英]Getting value from Firebase list response array

在訪問Firebase實時數據庫時,我試圖從對list()方法的響應中獲取元素值。 我必須有一些過時的文檔,所以對於具有TypeScript和Firebase基本經驗的人來說,答案可能非常簡單。 它是這樣開始的:我有 object db: AngularFireDatabase 我調用db.list ...

同一個 Angular 應用程序中的多個 Firebase 項目

[英]Multiple Firebase Project in same Angular app

我按照本教程將我的 angular 應用配置為使用兩個 Firebase 項目,主要代碼如下在應用程序模塊中 在提供商部分 我可以看到的問題: 1- angularFirestore 和 AngularFireAuth 的語法需要更多參數,我最后添加了 null 個參數 2-解決方案有效,但是當我 ...

Firebase 使用 Typescript 的雙因素身份驗證:錯誤(auth/argument-error)

[英]Firebase Two-Factor Authentication with Typescript: Error (auth/argument-error)

我遵循了官方文檔中的代碼。 當您向下滾動到完整代碼時,它有兩個問題。 首先,這看起來很奇怪: 他們在將它用於recaptchaVerifier之后定義auth 。 但這似乎是一個錯字,所以我只是切換了這兩行。 但是我無法解決第二個問題。 他們的代碼在 JavaScript,我的代碼在 TypeSc ...

有沒有辦法將從子集合 Firebase 中檢索到的文檔存儲到一個數組中以顯示其信息? AngularFirestore

[英]Is there a way to store the retrieved documents from sub-collection Firebase into an array for displaying its info? AngularFirestore

我正在使用 Angular 開發一個網站,目前遇到困難,無法將從 Firebase 子集合中檢索到的文檔放入數組中。 data.service.ts 文件中的 getBusStopsByRoute(id) 函數 export class DataService { constructor(pri ...

錯誤“屬性‘switchmap’在類型‘Observable’上不存在<user | null> " 當保護管理路由時</user>

[英]Error "Property 'switchmap' does not exist on type 'Observable<User | null>" when protecting admin route

我的管理員身份驗證服務 ts 在下面 錯誤是“‘Observable&lt;User | null&gt;’.ts(2339) 類型上不存在屬性‘switchmap’”。 我不知道如何解決這個問題。 我已經完成了所有事情甚至使用管道。 盡我所能 ...

無法在函數中調用 Firestore

[英]Can´t call Firestore in Function

我想從 Angular 向 Firstore 添加數據。 我已經在構造函數中初始化了 Firestore 對象。 如果我在構造函數中調用這段代碼,它對我有用。 現在我想在每次單擊提交按鈕時從我的 html 調用該函數。 該函數將被調用,但數據庫中沒有數據。 我怎樣才能解決這個問題?? 我必須在那里 ...

錯誤@angular/fire build 不正確地擴展接口

[英]Error @angular/fire build incorrectly extends interface

我開始新的 Ionic/angular 項目並添加 @angular/fire package。 當我運行“ionic serve”時,出現了這些錯誤: 這是我的配置。 Package.json: 包鎖.json: 應用程序模塊.ts: 有什么想法可以解決嗎? 我讀過類似的問題,但針對的是舊版本, ...

有什么辦法可以避免嵌套訂閱嗎?

[英]Is there any way to avoid nested subscribe?

( https://i.stack.imgur.com/2zm2w.png ) 嗨,我還是 Angular 的 rxjs 的新手。我正在使用 Angular Fire 構建一個 Ionic 應用程序。 我目前在這里遇到一些問題,我使用 Firebase 作為我的后端,我將不得不通過不同的 col ...

AngularFirestore 更新方法導致 observable 觸發兩次

[英]AngularFirestore update method causing observable to fire twice

在我的 angular 項目中,我訂閱了一個 Firestore 文檔,如下所示: 我只在一個地方訂閱,我的模板中沒有異步管道。 當我直接寫入 Firebase 時,這工作正常,我只收到一個日志。 當我使用 AngularFirebase 的 set 方法時,我只收到一個日志。 但是當我使用更新方法 ...

Angular Firestore Group collection 獲取多個文檔下的所有文檔

[英]Angular Firestore Group collection get all docs under a multiple document

我的 Firestore 數據庫的結構: 餐廳 --&gt; 數據 --&gt; 菜單 --&gt; 所有菜品我想獲取所有餐廳下的所有菜餚,並在一個頁面上顯示它們,就像所有吃早餐的餐廳的早餐名稱下的所有菜一樣,在它們下面,所有早餐如下圖所示。 任何人請向我建議一些想法來實現這一目標? ...

對內部聯接 2 列表執行兩個 firebase 查詢

[英]Performing two firebase queries to inner join 2 lists

我正在構建一個簡單的市場 web 應用程序,用戶可以在其中發布他們的產品。 我想獲得每個產品的用戶所有者。 請告訴我如何使用可觀察對象執行 Firebase 內部聯接! 我得到以下 2 個結果。 產品 用戶 我想要的最終結果 我如何使用 observable 實現這一目標? ...

更新后的 AngularFire 拋出 ERROR FirebaseError: Expected type 'Ea', but it was: a custom Ta object

[英]AngularFire after update throws ERROR FirebaseError: Expected type 'Ea', but it was: a custom Ta object

我將 AngularFire 7.4.1 與 Angular 14.2.4 和 RxFire 6.0.3 一起使用由於我將 angular 從 12 更新到 15,AngularFire 拋出了以下錯誤: 我正在從@angular/fire 導入所有內容,包括模塊設置所需的方法: 錯誤源於我的這部 ...

如何加入2個列表 Angular firebase

[英]How to join 2 lists in Angular firebase

我花了最后 2 個小時尋找解決方案,奇怪的是,沒有找到任何解決方案。 我以前使用過 sql 和 nosql 數據庫,但從未遇到過這樣的問題。 我的問題簡單明了。 我有 2 collections:原材料和原材料庫存。 每個原材料庫存憑證都包含一個原材料代碼。 我想要的是關鍵的原材料數據,並將其加入 ...

RXJS debounceTime() 和 angular firebase getDoc()

[英]RXJS debounceTime() with angular firebase getDoc()

如果存在 ID,我正在嘗試使用 debounceTime() 檢查 ID 的 Firestore collections 以避免高頻讀取。 但是,似乎 debounceTime() 沒有按預期工作,因為它幾乎是立即讀取的。 這是 function 呼叫檢查 ID: 我絕對認為我在這里錯誤地使用了去 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM