angularfire2

Angular TypeScript Error : traceur 404 not found

巧了我就是萌 提交于 2019-12-12 04:33:36
问题 I am using the latest (4.x.x) angular quickstart from angular.io. I want to import firebase and angularfire2 . I imported the libraries in systemjs.config.js as : map: { ... 'firebase': 'npm:firebase', 'angularfire2': 'npm:angularfire2/bundles/angularfire2.umd.js', 'angularfire2/auth': 'npm:angularfire2/auth', 'angularfire2/database': 'npm:angularfire2/database', ... }, packages: { app: { defaultExtension: 'js', meta: { './*.js': { loader: 'systemjs-angular-loader.js' } } }, 'firebase':{ main

Firebase Database query list for not equal to

大城市里の小女人 提交于 2019-12-12 04:15:27
问题 I am using Firebase in my Angular 4 app using AngularFire2. I have my database structure something like this. { "users": { "-Kr6HDbj9tMxmxsQ8UnM": { "name": "abc", "email": "xyz@example.com", "uid": "XLTPwGtFYcX6xVHbJGerHxGayT2" }, "-Kr6JBzN_9PZAMctYwt-": { "name": "pqr", "email": "pqr@example.com" "uid": "cdIj8YOncYYiUIEJrb65ynfFcl2" }, ............ } } I want to retrieve the last two entries of this data structure but exclude the data where uid is not equal to auth.uid . 回答1: I think it

AngularFire2: Retrieve Double Nested Object by Property Value

孤街浪徒 提交于 2019-12-12 04:01:45
问题 I'm not sure why, but I'm having a hard time with this. Consider the following model: threads threadId posts postId author: authorId This structure made sense for me, as I wanted to render the posts in the thread view within ngFor . Now I want to display lists of posts written by specific users in their profile view. But I'm having a hard time figuring out how to get them into an observable list. Since there are multiple keys in the path to the object I want, I have to do a lot of mapping to

how to return true or false from Angularfire2 facebook Authentication

本小妞迷上赌 提交于 2019-12-12 03:39:47
问题 Ok so I'm pretty new to AngularFire2 and Angular2 in general, I'm learning the authentication method that AngularFire2 provides. So far I have successfully implemented logging in with Facebook , my code currently resides in a service . So the code is simple (May look disgusting to you), I login via Facebook retrieve the users access token, and their facebookId, make a call to Facebook graph and retrieve Firstname, Lastname, Gender, Email etc then save this data within Firebase this is my code

Any pointers on using AngularFire2 With GAPI to Access Google Analytics Reporting

微笑、不失礼 提交于 2019-12-12 01:37:14
问题 Angular: Angular2 RC4 Firebase: Firebase3 (latest) AngularFire: AngularFire2 (latest) I'm looking at trying to access the Google Analytics Reporting v4 API. Something like this. But using Angular2 goodness. Has anyone had any luck with doing this? I've googled, but it doesn't seem to be that popular of a topic. It doesn't help that Angular2 is still pretty new, so there's that. Does anyone have any idea? I'm sure it's a thing. I think? I've got authentication working with AngularFire2 and

AngularFireStore return collection with subquery

偶尔善良 提交于 2019-12-11 18:27:25
问题 I have the following function getParticipations( meetingId: string ): Observable<Participation[]> { return this.meetingCollection .doc(meetingId) .collection<ParticipationDto>('participations') .snapshotChanges() .pipe( map(actions => actions.map(m => { const participationDto = m.payload.doc.data() as ParticipationDto; const id = m.payload.doc.id; return new Participation(id, participationDto.vart, null); }) ) ); } In the participationDto there is a document reference and I would like to get

Type '{}' is not assignable to type 'Profile'

删除回忆录丶 提交于 2019-12-11 17:36:53
问题 I'm new to typescript and im getting the error Type '{}' is not assignable to type 'Profile'. on this.profile how can I fix this? import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; import { AngularFireAuth } from 'angularfire2/auth'; import { AngularFirestore } from 'angularfire2/firestore'; import { Profile } from './../../models/profile'; @IonicPage() @Component({ selector: 'page-profile', templateUrl: 'profile.html', }) export

Accessing array in component from ionic view

依然范特西╮ 提交于 2019-12-11 17:04:52
问题 this.tribesProvider.getMyTribeDetailsByTriberId().subscribe(tribeIds=>{ tribeIds.forEach(tribeId=>{ this.tribesProvider.getMyTribeDetailsByTribeId(tribeId).subscribe(tribe=>{ this.myTribeList.push(tribe); console.log(this.myTribeList); }) }) }) I have to access the array myTribeList from its view like this <ion-item *ngFor="let tribe of myTribeList"> <ion-list> <h2>{{tribe.TribeDesc}}</h2> <h2>{{tribe.TribeName}}</h2> <h2>{{tribe.Created}}</h2> <h2>{{tribe.Updated}}</h2> </ion-list> </ion

What's the difference between AngularFireDatabaseModule and AngularFireDatabase in Ionic?

◇◆丶佛笑我妖孽 提交于 2019-12-11 16:18:57
问题 According to Angularfire2 Docs, it says that; AngularFireDatabase allows you to work with the Realtime Database, Firebase's original database. It's an efficient, low-latency solution for mobile apps that require synced states across clients in realtime. However, There is AngularFireDatabaseModule , which I have no idea what is it. Therefore, I wanted to know what are these two in more detail (provide a more detailed link if available) and when to use AngularFireDatabase and

Property 'list' does not exist on type 'database' and, Property 'push' does not exist on type 'AngularFireObject<any>

坚强是说给别人听的谎言 提交于 2019-12-11 16:16:44
问题 I am stuck on this error. It seems list method no longer exist in latest version and I am not able to get any clue to fix this error.Also push method does not exist on type AngularFireObject import { Component } from '@angular/core'; import { AngularFireDatabase, AngularFireObject } from "angularfire2/database"; import { AngularFireAuth,} from 'angularfire2/auth'; import { Observable } from 'rxjs/Observable'; import * as firebase from 'firebase/app'; @Component({ selector: 'app-root',