Questions tagged [ember.js]

Ember.js is a component-service application framework written in JavaScript. Consider making your question easier to answer by using the preconfigured templates mentioned in this tag's wiki. (Always specify version of ember used when describing your issue)

Ember.js is a application framework distributed under an open source license.

Ember.js provides a templating mechanism based on templates for view components, as well as facilities for an easy and tightly-integrated test process. It is easily embeddable into existing applications.


Getting Help

The Stack Overflow tag is actively monitored by several contributors to Ember. There is also an official Discord server. Other resources can be found on the Ember.js community page

Additionally Ember.js has a page on Debugging: Debugging Ember

Technical questions that are accompanied by working code make it easier for other to help give good answers.

To report bugs against Ember.js, or to propose new functionality, create an issue on the GitHub project.

Packages and add-ons

You can find various packages, add-ons on these websites:

Preconfigured Templates

Use these templates to help create an easier to answer question.

Related Stackoverflow Tags

Resources/Tutorials

23976 questions
5
votes
1 answer

Add backburner debug to ember-cli project

Ember guides suggest adding Ember.run.backburner.DEBUG = true; to you app in order to get better stacktraces. Where should this line be added in an ember-cli project? I'm currently using ember-cli 0.2.5
5
votes
1 answer

Acceptance tests in Ember.js change the URL in the address bar

This has been an annoying problem for days now. As I start to try to write acceptance tests for my Ember app, when I use the visit() function, the URL is changed in the browser's address bar, so when I change a bit of code and the liveReload…
redOctober13
  • 3,662
  • 6
  • 34
  • 61
5
votes
2 answers

Ember.js dynamic components

I have two Models Admin and User My application template is as follow //application.hbs {{outlet}} {{header-nav}} What I want to do (if it is possible) to make {{header-nav}} customizable, I explain : If the admin authenticate I want to render…
Grimmy
  • 143
  • 1
  • 9
5
votes
2 answers

How to create a modal confirmation dialog before delete with ember-cli

I am trying to create a users manager, I can create edit and delete users, In the delete action I want to display a modal confirmation dialog with a "proceed" & "cancel" buttons, to confirm user's suppression. What are the best practice to do that,…
Grimmy
  • 143
  • 1
  • 9
5
votes
2 answers

EmberData Setting value prevents future autoloads of data after model save

In EmberData calling model.save() causes the model to be persisted via whatever adapter is in place. If the adapter returns some data (such as JSON from an API) the model is updated with that data. I have stumbled upon a sequence where this is not…
Binarytales
  • 9,468
  • 9
  • 32
  • 38
5
votes
1 answer

Ember CLI: Build for staging

I'd like to create a build of an Ember CLI app for a staging environment. For staging, I'd like to essentially do exactly the same thing as production (minification, fingerprinting, exclude tests, etc), but want to pick up the environment variables…
Johnny Oshika
  • 54,741
  • 40
  • 181
  • 275
5
votes
1 answer

Compile template client side in ember using HTMLbars

I have created a CMS where it is be possible to use HTMLbars to create templates. The templates should be compiled client side and there is component that should display the template. I'm setting the template property of the component to a function…
Lillvik
  • 385
  • 4
  • 20
5
votes
1 answer

Separate environment config in Ember

I'm using the ember-cli to build my app, which gives me a nice app.js file that I can server up on a static asset server. What is the most idiomatic way to allow for a separate configuration at deployment time? For example, I might tell the…
Brian Genisio
  • 47,787
  • 16
  • 124
  • 167
5
votes
1 answer

Changes to initializers in Ember 1.12.0

I am using Ember CLI and have read the 1.12.0 release blog entry here: http://emberjs.com/blog/2015/05/13/ember-1-12-released.html#toc_instance-initializers and this…
danr1979
  • 461
  • 1
  • 3
  • 10
5
votes
3 answers

get length of hasMany relationship without triggering fetch

model: DS.Model.extend({ title: DS.attr('string'), body: DS.attr('string'), comments: DS.hasMany('comment', { async: true} ), hasComments: Ember.computed.gt('comments.length', 0) }); payload: { "id": "abcdefg", "title": "some cats are…
Joe B
  • 1,261
  • 14
  • 20
5
votes
3 answers

Create loading substate for application route

I'm trying to create a loading substate for the Application route using the new named substate options added recently, but for some reason, I can't get it to work. Originally, I just had created a simple template, loading.hbs, and it worked…
NicholasJohn16
  • 2,390
  • 2
  • 21
  • 45
5
votes
1 answer

What exactly does Ember.MODEL_FACTORY_INJECTIONS do?

I'm using Ember CLI and by default it seems to set Ember.MODEL_FACTORY_INJECTIONS = true; in app.js. I tried commenting this line out (and setting it to false) and then my app seemed to behave in some sort of strict mode. I got a bunch of failed…
Jamie Chong
  • 832
  • 9
  • 13
5
votes
1 answer

Cannot read property 'match' of undefined at Ember.DefaultResolver.extend.podBasedComponentsInSubdir

I'm getting a really opaque error message (opaque in the sense I have no point of reference for my own source) from console, I'm not entirely sure where to look, I feel it's likely an error in library code but before posting this on github I'll just…
akst
  • 935
  • 11
  • 21
5
votes
3 answers

Ember Handling 401s Revisited in 2015

I can find a ton of old questions asking/answering how to handle 401s from the Rails backend in Ember/Ember Data. Many, if not all, seem to be outdated at this point. I have tried everything I could find. (Ember-Data handling 401’s) But no matter…
Confused
  • 176
  • 3
  • 15
5
votes
2 answers

How to access model from controller?

I can't seem to get the model from inside the controller, even though the controller seems to have a model property set. The following: export default Ember.ObjectController.extend({ init: function() { this._super(); …
Felix
  • 3,783
  • 5
  • 34
  • 53