Questions tagged [ember-cli]

Node.js module which provides a command line interface (CLI) for developing Ember.js applications

A command line utility for creating applications.

Applications created with this tool benefit by being structured according to an ideal project template for Ember.js. It is also "batteries included", with support for generators/blueprints, dependency management, asset compilation, testing, and ECMAScript 6 modules.

For more information see the project documentation and the GitHub project page.

3109 questions
1
vote
1 answer

"undefined is not a function" for CP and didInsertElement

I'm wrapping a JS component into an Ember Addon, something I've done many times before, and yet I'm running into a problem right at the get-go that makes me worry that maybe the "magic" of ember has shifted slightly? Anyway hoping can explain why…
ken
  • 8,763
  • 11
  • 72
  • 133
1
vote
1 answer

Filter values in the controller

I want to filter products depending of the selected category which can be selected with a drop-down menu. products belongTo category What do I have to change in the controller to filter products depending of the chosen value of the drop-down…
wintermeyer
  • 8,178
  • 8
  • 39
  • 85
1
vote
1 answer

Subscribe to DOM events within Ember app

I've got a Ember CLI based blog. I currently resize all inside posts upon clicking them using this function inside the application-controller. I rely on on('init') and Ember.run.later and this feels just dirty. How can I improve the…
Hedge
  • 16,142
  • 42
  • 141
  • 246
1
vote
1 answer

How to define a large number of resources that use the same logic without creating boilerplate modules in ember-cli?

I have a large number of resources that use exactly the same logic. Each resource has a route and a .show route. I've defined BaseRoute, BaseShowRoute, BaseController, BaseShowController and corresponding templates to capture…
Sean Mackesey
  • 10,701
  • 11
  • 40
  • 66
1
vote
1 answer

Drop-down menu which changes the content on an other drop-down menu

I'd like to create a drop-down menu from a hasMany relation which filters the values of an other drop-down menu. I have ships which belongsTo companies and which haveMany cruises. The user of the webpage should be able to select nothing (the table…
wintermeyer
  • 8,178
  • 8
  • 39
  • 85
1
vote
1 answer

EmberJS - Using a custom layout/template instead of applcation.hbs

As a Rails developer who started messing around with EmberJS one week ago, I want to know if it's possible to use custom layout instead of the provided applictaion.hbs? Like we do it in rails: class MyController < ApplicationController layout…
Hendry I.
  • 21
  • 4
1
vote
1 answer

Display belongsTo category for a product

I render a product table at http://localhost:4200/products which should include the category of each product but doesn't. The template code: app/templates/products/index.hbs [...] {{#each product in model}} …
wintermeyer
  • 8,178
  • 8
  • 39
  • 85
1
vote
1 answer

EmberData unloadAll doesn't work on IE8. Works on Chrome/FireFox

Thanks in advance for the help ! I am having a problem refreshing my model on IE8. (Works on Chrome Chrome and Firefox) I run this code to refresh my model with a request to the database using my adapter. Through this command I am unloading the data…
1
vote
1 answer

Ember CLI - Fixture data not displaying

I am following this guide http://emberjs.com/guides/models/the-fixture-adapter/ I am simply trying to display a list of my fixture data in the personalities resource route. What am I doing wrong? The browser console error is: Error while processing…
ahnbizcad
  • 10,491
  • 9
  • 59
  • 85
1
vote
1 answer

Can't observe computed property

I've got a controller sorting posts first, then there's a filter applied to them. Sadly when I use {{#each post in filteredPosts}} in my template they don't live update. How can I achieve the sorting on multiple columns (in different directions),…
Hedge
  • 16,142
  • 42
  • 141
  • 246
1
vote
1 answer

Trigger displayed items with a checkbox and a boolean attribute

The setup: ember new shop cd shop ember install:addon ember-cli-scaffold ember generate scaffold product name:string available:boolean ember generate adapter…
wintermeyer
  • 8,178
  • 8
  • 39
  • 85
1
vote
1 answer

EmberJS global keyPress

Does ember have a way to allow ember components to capture/listen to global keypress events without having to set focus (as described by the attached links)? Is there an elegant way of doing this in the latest version on Ember ? Global…
Shivam Sinha
  • 4,924
  • 7
  • 43
  • 65
1
vote
1 answer

Ember.handlebars boundIf didn't call calculated property

I try to migrate project form Ember cli 0.1.2 to 0.1.15. Current problem is next: I have can-helper. It works fine at older ember but at newer version all can-blocks are absent. Can-helper use calculated property in model, so i try to set debugger…
Vasiliy vvscode Vanchuk
  • 7,007
  • 2
  • 21
  • 44
1
vote
1 answer

Reference to HTML-element that invoked an action

I'm invoking an Ember action via a link: Apps and handling it in the appropriate controller actions: { openApps: function() { //... } } How do I get a reference to the which invoked the action inside the…
Hedge
  • 16,142
  • 42
  • 141
  • 246
1
vote
1 answer

EmberJS simpleauth with devise authorizer not sending token header

I can't figure out how to get ember-simple-auth with ember-simple-auth-devise authorizer (version 0.7.2) to append the token header to my backend requests. Here is how my config/environment.js looks: var ENV = { modulePrefix: 'frontend-app', …
xrl
  • 2,155
  • 5
  • 26
  • 40