Questions tagged [angularfire2]

AngularFire is the officially supported Angular binding for Firebase. The combination of Angular and Firebase provides a three-way data binding between your HTML, your JavaScript, and the Firebase database. This tag is for binding with Angular2+. Don't use this tag for binding with AngularJS.

AngularFire2 is the officially supported Angular2+ binding library for Firebase. The combination of Angular2 and Firebase provides a three-way data binding between your views, components and the Firebase database. There are Firebase auth features available besides the database.

3107 questions
1
vote
0 answers

error during logout angular2

I am writing a web app using Angular2, AngularFire2 and Firebase. I am trying to implement the log out feature in the app but I get an error(given below) using the feature. this is my logout code this.dbSubscription =…
1
vote
1 answer

Angular2 AngularFire2 providerData array not updating in Template

I have an Angular2 app that allows login via Google or Facebook using Firebase (via AngularFire2). It also permits linking of accounts, so that a user can link his/her Google and Facebook logins to the same Firebase uid. On my ng2 User Profile…
1
vote
1 answer

AngularFire2 update and delete profile of other user

I have angular2 app and I try to allow the admin to update profile of the others users. But I don't know how to find the user to update or delete its data profile... How can I do ?
Swarovski
  • 581
  • 2
  • 8
  • 25
1
vote
0 answers

Ionic 2 + Firebase fast search

I'm trying to inplement filtering in the data that was retrieved from the firebase. As a newbie in Ng2 and Ionic I'm facing a troubles that connected with the speed of a search query. I got thouthands of records that keep the word and it's synonym.…
1
vote
2 answers

Is it acceptable to nest an observable subscription within another observable subscription

I'm struggling to get my head around observables in Angular2. I have a 2 subscriptions to an observable within an observeable forEach. So it's as follows: forEach gets the route ID (poll id) (Nested in 1) subscribe gets the poll from the database…
Peza
  • 232
  • 1
  • 9
1
vote
1 answer

Sort data descending list Firebase Angular2

Is it possible to sort values descending using Firebase in Angular2? In my example I want to use the timestamp field as the sort value. I have tried with this approach but haven't been succesfull in sorting it descending. this.items =…
user3642173
  • 1,225
  • 5
  • 19
  • 42
1
vote
0 answers

Angular2 testing with nested dependencies

I have a test for a component ("DashboardComponent") that uses a service ("ProgramService"). ProgramService uses another import, "AngularFire", but the component does not - yet my test for the component is failing with the error: "No provider for…
user1202032
  • 1,430
  • 3
  • 15
  • 36
1
vote
1 answer

Angular 2 Observable skip until returned arrays length > 0

As the title says I am trying to keep skipping within the subscription until the returned arrays length is > 0. Currently I am trying the following but getting an empty [] back let sub = this.subscribeUserByUsername(post.username).take(1) …
Fred
  • 147
  • 1
  • 1
  • 8
1
vote
1 answer

How to save or push to observable with AngularFire2 FirebaseObjectObservale

For some reason I cannot wrap my head around the methods in angularfire2 and firebaseobjectobservables and rxjs. I tried using $save() but I get an error about it not existing on firebaseobjectobservables. I also tried .push() which also brought up…
Bk Razor
  • 1,492
  • 1
  • 14
  • 24
1
vote
1 answer

Validate retrieved Firebase UID on server

I'm working with firebase and angularfire2 which allows authentication with Facebook, Google+ and Twitter. Now when a user authenticates like this, I get a response looking like the…
Ivar Reukers
  • 7,560
  • 9
  • 56
  • 99
1
vote
1 answer

Ionic 2 + Firebase issue wrong redirect

I just start developing hybrid apps using Ionic2 and Angular2. I decide to use Firebase with AngularFire2, following this tutorial: https://github.com/angular/angularfire2/blob/master/docs/1-install-and-setup.md Everything works fine when I type…
Irix
  • 11
  • 3
1
vote
2 answers

Query Firebase for highest id, then add to it

I need help with a Firebase query. I'm using AngularFire2 at the moment. I've been struggling with this for days. Read every document, watched every YouTube video, and asked many people, but I'm getting nowhere.. My Firebase structure is something…
Jus10
  • 14,519
  • 21
  • 52
  • 77
1
vote
1 answer

Typescript awaiting multiple subscriptions

I have an Observable containing a list of ID's. For each ID, i wish to get the object which the ID represents. Doing this requires me to get an observable for each object. How do I make sure all objects have been received before continuing? This is…
user1202032
  • 1,430
  • 3
  • 15
  • 36
1
vote
1 answer

How to get user details and check if user is loggedin in angular2 component

I have a service for my angularfire2 authentication call auth.service. There I want to use it to check if user is logged in and also to get the logged in user object so I can pass it to the component and use in the templates. Here is my…
LearnToday
  • 2,762
  • 9
  • 38
  • 67
1
vote
2 answers

Sequential and dependent queries with rxjs

I'm trying to make multiple sequential and dependent queries on a Firebase database. This is how the database look like : books : { book1: { title: 'Book 1', author: 'author1' } } authors: { author1: { name: 'Author 1' } } I'd like to retrieve all…
untemps
  • 165
  • 2
  • 11
1 2 3
99
100