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
1 answer

Firebase List Objects to Observable Array in Angular 2

I've integrated Flashlight with my Angular 2 project. Flashlight does the following: Automatically indexes specified Firebase paths to an ElasticSearch cluster and monitors those paths for changes, re-indexing any changes. Responds to query objects…
J. Adam Connor
  • 1,694
  • 3
  • 18
  • 35
1
vote
1 answer

How to next and previous in firebase when multiple OrderByChild have same Value

I would like to get Most Popular posts with highest number of UpVotes one after another. this.nextPostObservableList= this.af.database.list('/listOfPost',{ query :{ orderByChild : 'postUpvote', limitToLast : 2, endAt :…
1
vote
1 answer

Nesting Observables with Angularfire2 (TypeScript)

I have the following denormalized Firebase structure: members -memberid1 -threads -threadid1: true, -threadid3: true -username: "Adam" ... threads -threadid1 -author: memberid3 -quality: 67 …
1
vote
2 answers

How to store custom profile data in ionic 2 - Firebase 3 App?

I'd like to be able to store custom data in the JSON object returned by the auth.login - AngularFire2 method After authentication using the email/password method in Ionic2 - AngularFire2 library. signin(credentials) { return…
Magnus Melwin
  • 1,509
  • 1
  • 21
  • 32
1
vote
1 answer

Firebase - organising ranking system. Along with history of likes

I'm building an app where users can post, delete and also rank (like, dislike) each others' posts. And on the profile page user can also view posts that he ever liked. Currently I'm thinking to make the structure something like that (true - for…
1
vote
1 answer

Angular 2 Observables - Empty response on action still shows data in array

I have this function that aggregates some user data from Firebase in order to build a "friend request" view. On page load, the correct number of requests show up. When I click an "Accept" button, the correct connection request gets updated which…
Stevie Star
  • 2,331
  • 2
  • 28
  • 54
1
vote
1 answer

Firebase & angular2: Can I create request for filter by value

Can I create request to table 'User' for filter by value one field, I don't want get all record in table 'user'. For example: I have array. [{email: "email1@ar.rom", password: "111"}, {email: "email2@ar.rom", password: "111"}] I created…
1
vote
1 answer

Caching firebase data not to make duplicate requests. Angular2 with angularfire2

I'm getting an observable list of objects from firebase, then subscribe to it (via async pipe) in my component. For now everything works perfect. List is only reloaded when something changes. //getting observable list from…
1
vote
3 answers

Nested arrays in Firebase Database

I'm trying to work with angulafire2 to use my data stored in Firebase Database in my Angular app and I'm having some trouble with nested arrays. I have an structure that looks like this: items{ item1{ name: item1, subitems{ …
1
vote
1 answer

Ionic 2 Angularfire2 auth

Recently I have been doing a lot of development with Angular 2. I was working on creating a project that was going to be solely a website but now that I have found Ionic 2 I am thinking I should go that way. It would be nice to have the app's along…
rpascal
  • 723
  • 1
  • 8
  • 25
1
vote
2 answers

FirebaseListObservable + Promise = ? (AngularFire2)

as a follow-up to my previous question (on which I couldn't iterate over an array which seemed to be full), I now have an idea of what the problem is, and that should be that the list isn't full when I start to use it. I then tried using a promise…
Joao Ventura
  • 65
  • 1
  • 11
1
vote
1 answer

Angular 2 Service call is undefined from Angularfire 2 stream?

I have an operation in which i grab some data from my firebase using angularfire2, map it and do some updates/checks on the data then i want to save it again but i'm having this weird issue where it tells me 'this.fs.getRiders' is undefined? but i'm…
Ryann Galea
  • 307
  • 3
  • 18
1
vote
0 answers

Ionic 2 update specific child with AngularFire2

I want to update specific data in Firebase, 2 cases: I want to update specific child as shows in this photo: i have list of courses that chosen with ion-select in ionic 2 and i want to update\push each of them below the courses key for…
Manspof
  • 598
  • 26
  • 81
  • 173
1
vote
0 answers

Angular2 and Angularfire nested *ngfor issues

Component export class Component{ people: Observable; constructor(public af:AngularFire) { this.people = af.database.list('/people') .map((people) => { return people.map((person) => { person.post =…
1
vote
1 answer

Firebase / Angularfire2: how to retrieve data when rules are managed by push ID?

To retrieve data as a list in Angularfire2, we use the following code: const queryList = af.database.list('/items'); But it is not possible to retrieve data when database security managed by pushID as described below: { "rules": { …
da45
  • 311
  • 1
  • 3
  • 13
1 2 3
99
100