Questions tagged [emberfire]

EmberFire is the officially supported Ember JS adapter for Firebase with Ember-Data.

EmberFire is intended to make it easy to build Firebase-powered Ember applications.

152 questions
1
vote
0 answers

EmberFire Query equalTo 'false'

I'm using Ember 2.3, EmberData 2.3.2, and EmberFire 1.6.3 In my Ember route I'm returning a firebase query that looks like this: model() { return this.store.query('todo', { orderBy: 'complete', equalTo: false }); }, my model…
Aaron
  • 4,206
  • 3
  • 24
  • 28
1
vote
1 answer

ember firebase pass models to action handler

I have ember data models hooked with firebase, characters and spells. I can create new models and save them to firebase. Now I wanted to add spells to character. I defined that character has many spells: export default DS.Model.extend({ chClass:…
pera
  • 882
  • 11
  • 21
1
vote
1 answer

Ember/emberfire run loop acceptance test

So my acceptance test keeps on destroying itself before my promise finishes. I'm aware that I need to wrap my promise in Ember run loop but I just can't get it to work. Here's how my component looks: export default Ember.Component.extend({ store:…
Mikko Paderes
  • 830
  • 9
  • 18
1
vote
1 answer

Torii session undefined - not injected in ember / firebase app

In an ember cli project using firebase, I've installed (using ember install) emberfire and torii. I have put the following configuration in my config/environment.js right after my firebase app url: torii = { sessionServiceName: 'session', } And…
mmwebster
  • 152
  • 10
1
vote
1 answer

Security - Async Models - Firebase

After seeming to bang my head on a wall for what seems to be a simple problem I thought it best to ask for some help. I am creating an EmberFire application that allows users to authenticate using the simple login. Once authenticated the user can…
RLW
  • 132
  • 1
  • 9
1
vote
1 answer

Saving an html object to firebase

I'm working in ember.js my project has an image cropping mechanic. This returns to me by default a canvas object and some data necessary to redraw the cropped image. But when I try to save the canvas object to firebase it saves it as something like…
Jordan
  • 2,393
  • 4
  • 30
  • 60
1
vote
0 answers

How can I delete a chat message with Emberfire?

I've created an action to add messages to my firebase, but can't seem to figure out how to remove a specific message. Here is my new message controller so far: import Ember from 'ember'; export default Ember.Controller.extend({ //define actions…
TheCodeFox
  • 96
  • 10
1
vote
1 answer

Firebase error: The specified email address is invalid

I keep getting the error "The specified email address is invalid" in my Ember-Firebase app, even if I created an account just to test log in. I'm wondering if it has to do with the way I'm passing information as a…
sunoceansand
  • 237
  • 3
  • 13
1
vote
1 answer

Ember-cli throwing Unexpected Token error

Undoubtedly this error is something easy for an ember expert to identify but thats not me so here it is Ember-cli identifies blank space before this line as an unexpected token: this.store = container.lookup('store:main'); /*global md5*/ import…
tharderer
  • 83
  • 1
  • 5
1
vote
2 answers

How to efficiently specify nested relationships in ember-data?

I have a nested model as such: var School = DS.Model.extend({ classrooms: DS.hasMany('classroom', {async: true}) }); var Classroom = DS.Model.extend({ students: DS.hasMany('student', {async: true}), school: DS.belongsTo('school',…
molligan
  • 35
  • 3
1
vote
1 answer

Uncaught TypeError: Cannot read property 'login' of undefined

I'm trying to set up OAuth with Firebase and Ember. For some reason it's returning the error Uncaught TypeError: Cannot read property 'login' of undefined App.LoginController = Ember.ObjectController.extend({ actions: { login:…
sunoceansand
  • 237
  • 3
  • 13
1
vote
2 answers

Does emberfire 1.3.2 implement findQuery method?

When I tried to load articles by simply calling this.store.find('article', { typeId: model.get('typeId') }), I get: Error while processing route: article Assertion Failed: You tried to load a query but your adapter does not implement `findQuery`…
codepreneur
  • 466
  • 6
  • 19
1
vote
1 answer

Where to authenticate with customToken using adapters

We're trying to authenticate with a customToken to Firebase - this has been working before we moved to EmberCLI as we initiated these Firebase specific adapters at a later stage in the app runtime. Now trying to initiate the authCustomToken at an…
hussfelt
  • 251
  • 3
  • 12
1
vote
1 answer

Records created with a previously deleted ID generates an uncaught error

In my application, I have what I think is a fairly standard User model, whose IDs are based on the authenticated users' fbRef.getAuth().uid value (which in my case is assigned by the Anonymous authentication provider). I have a global users which…
Bill Dami
  • 3,205
  • 5
  • 51
  • 70
1
vote
0 answers

emberSync.find works, but emberSync.save() doesn't. Why?

I am using ember-sync, ember-localforage-adapter and emberfire to solve offline storage in iOS/android apps problem. And for some unknown reason (I don't get any errors, that's the worst part) emberSync.find/pulling data from firebase works, but…
codepreneur
  • 466
  • 6
  • 19