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
0
votes
2 answers

Ember 2.4 + EmberFire findAll sorting descending

App: Ember 2.4 DB: FireBase; Can't get data sorted with descending direction. Using export default Ember.Route.extend({ model: function() { return this.store.query('message', { orderBy : 'time' }); } }); for…
0
votes
1 answer

How to invoke index/index route's model hook after user's authorization?

Hi I'm making an app using Ember and Firebase in which user can create a new account, log in and should be able to see information about his account and some protected routes only when he is authorized. So that non-authorized users can see only 2…
Lukasz K
  • 162
  • 2
  • 13
0
votes
1 answer

Can I get {{link-to}} to specify which animation to use with ember fire?

I have left/right arrows on a page and I want to pick the animation without having to define a relationship between all the routes. Is it possible to set it on the {{link-to}}? Right now it's pretty brittle.
Kit Sunde
  • 35,972
  • 25
  • 125
  • 179
0
votes
1 answer

Saving User Object Breaks After Ember Build

I have an Ember JS survey application built with a Firebase backend (Emberfire adapter). The following code works correctly when in development: if(!(_this.currentModel.get('respondents').contains(thisUser))) { …
vikram-s-narayan
  • 538
  • 4
  • 12
0
votes
1 answer

How to secure my Firebase App build with EmberFire

I scratch my head for that Firebase security works as i want. My app is build with Ember and so with EmberFire. So structure is determine by EmberFire. My database structure is as follow : conversations : { $conversation_id { …
Scandinave
  • 1,388
  • 1
  • 17
  • 41
0
votes
1 answer

Ember Data & Ember Fire Out of Sync Checkboxes

I am walking through the tutorial of EmberJS and creating TodoMVC: http://www.thetechcofounder.com/getting-started-with-ember-js-using-ember-cli/ Instead of using the ember-cli-mirage from the tutorial, I'm wiring up Firebase and most of it works…
Aaron
  • 4,206
  • 3
  • 24
  • 28
0
votes
1 answer

Many to Many relationship in emberfire

I was wondering wether it is possible to create a many to many relationship in emberfire. I've got the following models: //Employee name: DS.attr('string'), position: DS.attr('string'), accessoryPosition: DS.attr('string'), education:…
Chris
  • 7,830
  • 6
  • 38
  • 72
0
votes
1 answer

What Type of Firebase Data Structure Is Better?

I'm seeing mixed tutorials in Firebase that recommends to structure data like this: posts: { post_1: { title: 'Some Title', comments: { comment_1: true, comment_2: true, ... comment_x: true } } } comments:…
Mikko Paderes
  • 830
  • 9
  • 18
0
votes
1 answer

EmberFire Adding relationship from different model

------------------------------- Ember : 1.13.11 Ember Data : 1.13.15 Firebase : 2.3.2 EmberFire : 1.6.3 jQuery : 1.11.3 ------------------------------- I've got two endpoints in my firebase app. /employees and /subjects. In my ember app…
Chris
  • 7,830
  • 6
  • 38
  • 72
0
votes
1 answer

Emberfire destroyRecord error

I am currently receiving todo is not defined when I try to call the destoryRecord method on an item in my store. I have tried to rewrite this code a number of ways but i still seem to be running into problems. Here are the files I am working with.…
Thomas Greco
  • 122
  • 1
  • 11
0
votes
1 answer

Is it possible to order the hasMany relative data in Ember with Emberfire?

I've two different models, with hasMany/belongsTo relationships between them. Ordering the request regular positions (like in this case name) by Emberfire it's easy. But I cannot figure it out how to do it with relationships On the route's template…
Lowlo
  • 255
  • 1
  • 16
0
votes
1 answer

How to query with equalTo in emberfire?

I'm trying to make a trully simple query with Emberfire, but it's not working. No console errors, it just doesn't do a thing. My versions are Ember 2.2.0, Ember-data 2.2.0 and EmberFire 1.6.1 My data is something like the folowing: { 'data':[{ …
Lowlo
  • 255
  • 1
  • 16
0
votes
1 answer

getting error with ember-fire: Assertion Failed: You must include an 'id' for undefined in an object passed to 'push'

I have a sample notebook app that works with ember-cli's HTTP mocks and also my rails backend using ActiveModelSerializer. When I hook it to firebase with ember-fire, I am able to register a user (I see it in the dashboard) but when I try to…
David Hersey
  • 1,049
  • 11
  • 13
0
votes
2 answers

emberjs - sorting data retrieved from Firebase

I've spent the last three days trying to figure this out and i hope someone from here could help. Note regarding setup: I'm working off Ember-Cli therefore my Ember version 1.13.7 and Ember-Data 1.13.8 To learn more about how emberJS works i decided…
Molik Miah
  • 132
  • 7
0
votes
3 answers

Ember-CLI tests: Please set the `firebase` property on the adapter

I have an Ember.js application with Ember-CLI and using Firebase. When I run /tests the only error I get is the following: Error: Please set the firebase property on the adapter. at init (http://localhost:4200/assets/vendor.js:99854:15)…
Rich
  • 11
  • 3