Questions tagged [angularfire5]
104 questions
1
vote
1 answer
ionic 3 angularfire2 code to ionic 4 angularfire2 code
i have my code with ionic 3 angular 5 working as below
getUser(uid:string){
console.log('start of getUser with uid:' + uid)
return new Promise((resolve, reject) =>
{
this.db.object("/users/" + uid).snapshotChanges().map(
…

Vik
- 8,721
- 27
- 83
- 168
1
vote
1 answer
@angular/fire: ERROR TypeError: Cannot read property 'firebaseApp' of undefined
I'm using:
"@angular/core": "^6.1.0", ...
"@angular/fire": "^5.0.2",
"firebase": "^5.3.1",
If in my app.modules.ts I have:
import { AngularFireModule } from '@angular/fire';
...
imports:…

karlmnz
- 138
- 10
1
vote
0 answers
How to read values of an array outside valueChanges after populating it inside a valueChanges subscription angularfire
it's been three days and i'm still looking for a solution to this.
Basically i have a class attribute variable dataMapped which is going to be an array of course
i populate it inside getAllPersonnel() function
getAllPersonnel(){
…

kasback
- 23
- 4
1
vote
1 answer
Typescript error after migrating to angular fire V5
Error msg "Argument of type '{ 'itemType': string; 'qty': string; 'time': string; }' is not assignable to parameter of type 'openInventory[]'.
Property 'length' is missing in type '{ 'itemType': string; 'qty': string; 'time': string; }'."
Snippet
…

Raj
- 11
- 2
1
vote
1 answer
Download a list from storage with angularfire2
I can successfully save a document in firebase.
I would now like to display all the documents contained in a particular storage folder
But the documentation only specifies how to get a specific document:
@Component({
selector: 'app-root',
…

Newbiiiie
- 1,401
- 3
- 14
- 33
1
vote
1 answer
Angular & RXJS - [ts] Property 'map' does not exist on type 'Observable'
Since creating a new angular 6 project, some previous code that I've copied over doesn't seem to be working. This primarily seems to be rxjs syntax
On the .map, it displays the error:
[ts] Property 'map' does not exist on type…
user8516249
1
vote
1 answer
subscribe downloadurl from custom service
I'm using AngularFireStorage to build a upload image service. And have a problem.
Can't anybody show me the way to subscribe downloadurl? Here is my service:
This service may be worng?
uploadImage(image): Observable {
const path = ...; …

Anh Nguyễn Tuấn
- 91
- 1
- 5
1
vote
1 answer
Fetch data from AngularFire2 5.0.0-rc.8 not displaying
During runtime, I'm able to get the data as seen from the Chrome Developer Tab Network Frames view, but its not displayed on the Console.
The "Hello" alert is shown, but not the "Inside" Alert, which is odd.
Any way to resolve this issue?
In…

Dibyanshu Patnaik
- 43
- 6
1
vote
1 answer
How to know when the upload is complete using AngularFire Storage
I am trying to convert and upload function using AngularFire from using the native Firebase library to the AngularFire2 v5 library. How can I know when the upload is complete so I can run additional commands after.
const image =…

Xerri
- 4,916
- 6
- 45
- 54
1
vote
0 answers
How to handle the key property in angularfire5
As we all know there were breaking changes to the angularFire api in version 5. For example, in my data service I previously had a methods like this:
getBookings(): Observable {
return this.db.list('bookings');
}
update(booking:…

EluciusFTW
- 2,565
- 6
- 42
- 59
1
vote
0 answers
How do generate child key for AngularFireDatabase?
I have pattern:
export class Items {
key: string;
item: string;
childItems: {key: string; item: string; };
}
And have some Service is generating parent key:
export class OptionService {
private dbPath = '/items';
itemsRef:…

Sergey Korol
- 11
- 1
1
vote
0 answers
how to join data nodes in firebase using angularfire2 v5.0 and display them together
I am making an ionic 3 app and integrating it with firebase. I couldn't get proper docs on retrieving data.
1) What is the best way to use firebase is firebase SDK or angularfire2 v5.0 (I am creating a simple app).
2) How to retrieve all student's…

MDEez
- 11
- 1
1
vote
1 answer
Getting reference to an item using AngularFire2
I am using AF2 v5 and using the Real-time database.
I want to get the reference to a node or item in my data. After checking the docs I found the following.
const listRef = db.list('items');
Notice the user of the .list() method. The return type of…

krv
- 2,830
- 7
- 40
- 79
1
vote
1 answer
How to fetch data from firestore and inside it fetch another data (by reference)
I can't figure out how to fetch data from firestore when i have in data model reference (id) to another object, for example like this
City {name: string;
countryId: string; //primary key to another object in database
}
Country {
…

magino
- 109
- 9
1
vote
1 answer
Using Firebase storage with AngularFire2
I'm converting my code to start using AF5 to interact with Firebase Storage but I am also configuring the metadata with firebase.storage.UploadMetadata. Can that be changed with AF5 and avoid importing the firebase library?

Xerri
- 4,916
- 6
- 45
- 54