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", {...
I'm using Ember CLI 1.13 and I'm attempting to create a router mixin in an addon that binds to the willTransition hook, but the issue I'm encountering is not limited to this event.   At this point the mixin looks like such:  import Ember...
I have 2 views that share a view and I am trying to pass variables between them to turn on|off various html segments.  Is this possible?  When I run console.log the view.showTitle variable = "view.showTitle" not 1 like it should be? Odd, righ...
In an ember.js application that I am working on (ember v1.8.0-beta1, ember-cli), I have a page with a simple sign-up type form that includes a country select dropdown. The problem is that since this field has a relatively large number of options (244...
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...
Is there a way to exclude a folder from a build in a Brocfile (or any other place). The use case is packaging, where I have an app made of sub-apps within pods. eg.  /app/modules/components /app/modules/app1 /app/modules/app2 /app/modules/app3   I...
Ember CLI applications have a package.json that lists everything as a dev dependency. Even stuff that is needed in the app's production version. For instance packages like ember and ember-data are installed as devdependencies.  As a reference, he...
I have this a model in this path:  /my-project/app/models/my-model.js   And I want to import it from a route in this path:  /my-project/app/routes/battles/battle/combats/new.js   The import sentence looks like this:  import MyModel from '../../.....
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.