emberfire

Authentication failed - Permission Denied with EmberFire

非 Y 不嫁゛ 提交于 2020-01-14 01:47:03
问题 I'm trying to set up a basic datastore at firebase when following simple beginner tutorials on Ember js 2.0. For example I am following this tutorial: https://medium.com/@jamesfuthey/a-gentle-introduction-to-ember-2-0-8ef1f378ee4#.d6umfj62j I always seem to have a problem with authentication with the Firebase URL. That is, I've gotten to the bit where this tutorial tries to write information to my firebase project, but the Chrome Inspector shows I'm getting a 'permission denied' error from

Authentication failed - Permission Denied with EmberFire

限于喜欢 提交于 2020-01-14 01:46:07
问题 I'm trying to set up a basic datastore at firebase when following simple beginner tutorials on Ember js 2.0. For example I am following this tutorial: https://medium.com/@jamesfuthey/a-gentle-introduction-to-ember-2-0-8ef1f378ee4#.d6umfj62j I always seem to have a problem with authentication with the Firebase URL. That is, I've gotten to the bit where this tutorial tries to write information to my firebase project, but the Chrome Inspector shows I'm getting a 'permission denied' error from

Ember/emberfire run loop acceptance test

吃可爱长大的小学妹 提交于 2019-12-24 16:31:08
问题 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: Ember.inject.service(), didReceiveAttrs() { this.handleSearchQueryChange(); }, /** * Search based on the searchQuery */ handleSearchQueryChange() { this.get('store').query('animals', { orderBy: 'name', startAt: this.attrs.searchQuery }).then

Ember - Sort Model after findAll

一个人想着一个人 提交于 2019-12-24 10:35:14
问题 I'm using Emberfire in my app, and I'm trying to findAll stats, and then sort that model by a key, like in the following example. But, when I sort this way I lose the ability to see real time updates in my template and I have to reload the page to see the new/updated data in the view. model() { return this.store .findAll('stats', { reload: true, backgroundReload: true }) .then(stats => stats.sortBy('date')); } 回答1: You have to define a computed property at your controller or a component,

Ember.js Acceptance Testing not waiting for asynchronous data operations

你。 提交于 2019-12-23 19:52:04
问题 When using the Emberfire (Firebase) adapter, I'm getting various errors that indicate the tests are not waiting for data operations to complete. eg: Error: Assertion Failed: You can only unload a record which is not inFlight. when I try to create, check, and then delete a record Also: FIREBASE WARNING: Exception was thrown by user callback. Error: Called stop() outside of a test context at Object.extend.stop (http://localhost:4200/assets/test-support.js:3000:10) at exports.default.

How to specify async belongsTo/hasMany relationships in emberfire/emder-data?

北城以北 提交于 2019-12-20 07:22:22
问题 I am very new at Ember/ED/EmberFire so apologies if this is a trivial question. I am able to save records to Firebase but I am unable to specify relationships to those records in my controller. I am using DEBUG: Ember : 1.10.0 DEBUG: Ember Data : 1.0.0-beta.12 DEBUG: Firebase : 2.2.3 DEBUG: EmberFire : 1.4.3 DEBUG: jQuery : 1.11.2 I have a model as such: var Patient = DS.Model.extend({ lastName: DS.attr('string'), firstName: DS.attr('string'), encounters: DS.hasMany('encounter', {async: true}

Does emberfire 1.3.2 implement findQuery method?

孤人 提交于 2019-12-13 18:22:27
问题 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` Error: Assertion Failed: You tried to load a query but your adapter does not implement `findQuery` at new Error (native) at Error.EmberError (http://localhost:4200/assets/vendor.js:21769:23) at Object.Ember.assert (http://localhost:4200/assets/vendor

Set multiple data with Ember and make it persist on Firebase

给你一囗甜甜゛ 提交于 2019-12-13 07:04:19
问题 I am trying to set data from two models (that has hasMany & belongsTo relationship) and save them to firebase. 'list' data ends up being saved to firebase but not user data. I think I'm doing something wrong at step 3. I'd appreciate your help! import Ember from 'ember'; export default Ember.Route.extend({ model: function() { return this.store.find('list'); }, actions: { createList: function() { var newListTitle = this.controllerFor('lists').get('newListTitle'); var username = this.get(

Namespace “Firebase” already declared

家住魔仙堡 提交于 2019-12-12 04:39:46
问题 I cannot find for my life why it's saying that I've declared the namespace twice. The error message is: Uncaught Error: Namespace "Firebase" already declared. I saw that people having this error named their app 'emberfire' or 'firebase'. I named my app 'nutella' so I don't know why it's complaining about the namespace. I tried searching for the word "Firebase" and here's the result: /Users/sunoceansand/nutella/app/adapters/application.js: 1 import config from '../config/environment'; 2:

Adding firebase & emberfire dependencies to an ember.js app (ember-cli)

江枫思渺然 提交于 2019-12-10 18:11:30
问题 I'm an emberjs begginer and I have been searching how to add the "firebase" and "emberfire" dependencies to my ember application that I created using ember-cli. I used bower to install these 2 dependencies but I get this error: Firebase is not defined ReferenceError: Firebase is not defined at eval (app/adapters/application.js:6:23) at requireModule (loader.js:54:29) at resolveOther (ember-resolver.js:158:20) at superWrapper (ember.js:1267:16) at Ember.DefaultResolver.extend.resolve (ember