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

Two-way binding in custom component not working

I've created a component like this: templates/components/files-dropzone.hbs

Awesome text

components/files-dropzone.js import Ember from 'ember'; export default…
Hedge
  • 16,142
  • 42
  • 141
  • 246
1
vote
2 answers

Is there a way to install node_modules globally when creating ember app using ember-cli?

Every time I generate a new ember app using the ember-cli ember new my-app It will have 177MB node_modules inside my-app folder. Is there a way to just install this node_modules globally and not have it on every ember project? Note: I see you can…
Reynard
  • 561
  • 6
  • 12
1
vote
1 answer

Can't sendAction from event handler triggered by component

I've got a component sending an action: this.sendAction('action', data.files) In the template I used the component like this {{file-upload url="api/v1/upload" action="finishedUpload"}} In the controller handling the event I'd like to send another…
Hedge
  • 16,142
  • 42
  • 141
  • 246
1
vote
1 answer

ember-cli: ember test error global modules not found

Using ember-cli 0.1.15 'ember test' giving error trying to use moment. The helper below loads fine in the browser, but the test fails trying to find moment.js: Could not find module app/helpers/bower_components/moment/moment App Helper import Ember…
mrlindsey
  • 300
  • 2
  • 12
1
vote
1 answer

Ember-CLI Generated Acceptance Test Fails

I have a very basic Ember-CLI application running with about 75 or so QUnit assertions that all pass. When I generate an acceptance test: ember generate acceptance-test games Which produces: import Ember from 'ember'; import { module, test } from…
Jon
  • 1,234
  • 2
  • 12
  • 30
1
vote
0 answers

Ember 1.8.1- component link-to not working with action

I am using Ember 1.8.1. I have a component for some notifications. They use dynamic variables to determine a link-to ( I use computed properties to determine the proper route, and model to send through. This is calculating correctly.). Then within…
1
vote
1 answer

Where do I use Pretender to enable Ember Qunit integration tests with rails-csrf?

We are using rails-csrf in our ember-cli app. The README on rails-csrf says: Be sure to mock out the call to the csrf server endpoint. Otherwise your tests will fail with "error while processing route: [route]" messages in the browser console. For…
pjmorse
  • 9,204
  • 9
  • 54
  • 124
1
vote
2 answers

How to get access to global variable in template?

I want to create global object with settings which I need to get from REST API. I need to make one request to REST API and get settings and after that I want to get access to these settings from any controllers and from any templates. What can you…
Dmitro
  • 1,489
  • 4
  • 22
  • 40
1
vote
1 answer

Ember-Cli vendor.js initial download - Showing a loading message

What is the ember-cli way of displaying a static message to indicate that the emper-app itself (vendor.js) is loading (being downloaded)? Current situation Index.html is blank pre vendor.js download Goal Display something to the user while…
consideRatio
  • 1,091
  • 13
  • 19
1
vote
1 answer

How to define a polymorphic association?

I am trying to set a polymorphic association. Unfortunately, the Ember docs don't cover this too well. My API (Rails) has the following definition: class User < ActiveRecord::Base belongs_to :profile, polymorphic: true#, dependent:…
Christian Fazzini
  • 19,613
  • 21
  • 110
  • 215
1
vote
1 answer

Ember.TEMPLATES is empty (ember-cli-htmlbars)

We're currently using ember-cli 1.10.0, which comes out of the box with ember-cli-htmlbars 0.7.4. Our app directory is what ember-cli sets up out of the box. There's an application.hbs file in app > templates, and we added a directory app >…
srisonti
  • 307
  • 4
  • 13
1
vote
1 answer

Getting oauth2-bearer working with simple-auth

I'm a big fan of the quality of the code and documentation for Ember's simple-auth but coming back to it after a few months on a new project I'm running into what is probably just a stupid oversight but it is a blocker and I can't seem to figure it…
ken
  • 8,763
  • 11
  • 72
  • 133
1
vote
1 answer

Retrieve data from multiple models

I've got a blog-post-editor. The blog-post I'm editing is the model. Now I'd need all categories for the blog-post stored in a select-box. What's the best way to retrieve and display those categories? Currently I'd do it like this in the controller…
Hedge
  • 16,142
  • 42
  • 141
  • 246
1
vote
1 answer

ember-cli extend assert with custom assertion helpers

In the latest ember-cli, in the unit tests the test function expect as last parameter a function which would have the assert object as first parameter. I was wondering how can I extend this object to add my own custom assertion helpers? For example…
Huafu
  • 2,445
  • 1
  • 22
  • 26
1
vote
1 answer

When should an ember-test clear its timers?

I have an older Ember-cli app that I've just updated to all the latest dependencies and file formats, I've run ember init with ember-cli@0.2.0-beta.1, but when I try to write an acceptance test with the visit() helper, the internal wait function…
DanF
  • 589
  • 4
  • 23
1 2 3
99
100