How to use valueChanges() instead of get() to download data with JSON string?
问题 I have a form with two different buttons, one to download data (from Firestore) and one to display it in realtime. For this I have two functions (Angular 8), where one uses valueChanges() to display data in realtime and the other uses get() to get the same data and download it. The user can choose to specify search more or less, so I have quite a lot of code for making the query and this needs to be doubled if I am to use both get() and valueChanges() . I am therefore wondering if someone can