This is my directory structure:  controllers/ ---- restaurant/     ----items.js ---- index.js ---- restaurant.js   And my router declaration:  this.route("restaurants",{ path: "/restaurants" });  this.resource("restaurant", {...
In my app I have this initializer which injects the store into all services:  export function initialize(container, application) {   application.inject('service', 'store', 'store:main'); }  export default {   name: 'inject...
Based on recommendations for the preparation for Ember 2.0...     • In general, replace views + controllers with components   • Only use controllers at the route level...   ...we're supposed to eschew Controllers and Views in favor of Compone...
In a new ember App you write first:  var App = Ember.Application.create({     test: 'foo',     ... });   In a new ember-cli App you write first:  var App = Ember.Application.extend({     test: 'foo',     ... });   Why?  ( In the secon...
It appears the Qunit test methods aren't available even though I'm pretty sure I am importing them correctly.   I get the following errors:  unit/models/friend-test.js: line 11, col 3, 'ok' is not defined. unit/models/friend-test.js:...
I have few Ember.Mixin in my app that contains DS.attr() and / or DS.belongsTo(). I was wondering how should I unit test them ?  By default, ember-cli generate this test  test('it works', function(assert) {   var MyModelObject = Ember.Object....
I'm using:   ember-cli 0.2.7 ember-data 1.0.0-beta.18 ember 1.12.0   I'm not sure why but it seems that I can't retrieve the tags for my newsletter model.  I'm using ActiveModelAdapter:  import DS from 'ember-data';  export de...
I'm attempting to write a unit test to ensure that properties are closed upon the closing of a modal.  However, I seem to be having issues with the action handling.  I keep getting the error message: Error: <[email protected]:add-team-moda...
I have a global custom Adapter:  // app/adapters/application.js import ActiveModelAdapter from 'active-model-adapter';  export default ActiveModelAdapter.extend({   namespace: 'api',   host: 'http://reportsdashboard-v2.daliaresear...
I am trying to get a test helper working using Ember CLI, but I always get [functionName] is undefined.  Here is my test, helper, as according to the emberjs docs:  `import Ember from "ember"`  acceptanceHelpers = ->     Ember.Test.registe...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.