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
34
votes
5 answers

Ember.js and RequireJS

Has anyone had much success with RequireJS and Ember.js? Seeing as Ember likes to have its structure assigned to a global object I'm finding that it can really butt heads with Requirejs. Would something like LAB.js work better for Ember?
Jonesy
  • 425
  • 1
  • 5
  • 5
34
votes
2 answers

EmberJS Set Multiple Properties At Once

I am setting lots of properties with a series of set calls e.g. this.set('prop1', value1); this.set('prop2', value2); ....... Is there a way to do this in one call (similar to when I create an object)? E.g. this.setMultiple({prop1: value1, prop2:…
ghempton
  • 7,777
  • 7
  • 48
  • 53
33
votes
5 answers

How to use third party npm packages with ember cli app

EDIT: this is actually about any npm package which is not designed to play along with ember. In my case, I tried to make crypto-js work, but it seems to be always the same trouble with any npm package not specially designed for ember cli. I want to…
Preexo
  • 2,102
  • 5
  • 29
  • 37
33
votes
4 answers

How to reload current route in Ember.js?

in Ember.js I have route with model. Could you help me, when I'm on route playlist how to reload this route (or set new data to model) called by callback from another JS function? I've been looking to documentation so long, but no help for…
honzahommer
  • 839
  • 3
  • 10
  • 15
33
votes
3 answers

How do you create a custom adapter for ember.js?

I'm planning on using ember.js, however my REST api doesn't exactly align with the packaged REST Adapter. I would like to "override" find and be able to put my own ajax in it. I dislike how an ember findAll retrieves all my documents with no…
carboncomputed
  • 1,630
  • 3
  • 20
  • 42
33
votes
4 answers

Ember: Get route instance from the controller

I have a multi-step flow that the user can go through sequentially or jump straight to a section (if the sections in between are completed). I think this logic should be in the Route object. However, from within the controller, how do I access the…
Jeremy Gillick
  • 2,560
  • 3
  • 27
  • 35
33
votes
5 answers

Ember: how do you access the model from the router?

Based on what I've read (please correct me if I'm mistaken), the logic that handles when a model should be saved and where to transition next should be in the router. If that is the case, I'm running into a bit of a problem: I don't know how to…
Ramon Tayag
  • 15,224
  • 9
  • 43
  • 69
33
votes
4 answers

Handling user authentication when using ember.js

I was looking up documentation and posts on ember.js, and using ember.js with Rails. I like the idea of Rails providing the API, and ember.js handling the UI, but I was wondering how to plug User authentication. Eg, say I am using devise, how do I…
zsquare
  • 9,916
  • 6
  • 53
  • 87
32
votes
2 answers

Select view template by model type/object value using Ember.js

I would like to store different objects in the same controller content array and render each one using an appropriate view template, but ideally the same view. I am outputting list objects using the code below. They are currently identical, but I…
joevallender
  • 4,293
  • 3
  • 27
  • 35
32
votes
2 answers

{{content-for 'head'}} Ember-cli

I've been using Yeoman ember generator for the past 1 month and now, I'd like to give ember-cli a try. I run the generator and launch the app, everything works fine. ember new my-new-app ember server but I'd like to know how does {{content-for…
Sukhito
  • 407
  • 1
  • 4
  • 9
31
votes
3 answers

How to mock an Ember-CLI service in an acceptance test?

Quick summary/tldr: It seems that Ember's container lookup process + Ember-CLI's module resolver doesn't allow manually un-registering a service and then registering a replacement if the original service can be resolved using the resolver (I want…
CraigTeegarden
  • 8,173
  • 8
  • 38
  • 43
31
votes
2 answers

EmberJS - sharing a controller / template for different routes

I have a very simple CRUD application that allows for creating new objects as well as editing them. The template used for adding a record and editing a record are almost identical. They use the exact same form elements. The only difference is the…
ddewaele
  • 22,363
  • 10
  • 69
  • 82
31
votes
9 answers

Combine linkTo and action helpers in Ember.js

I need to combine linkTo and action helpers in Ember.js. My code is: {{#link-to 'index'}}Clear{{/link-to}} But I would like to make this something like this: {{#link-to 'index' {{action 'clear'}}…
Daniel Kmak
  • 18,164
  • 7
  • 66
  • 89
30
votes
1 answer

ember-cli where to put images

In the ember-cli folder structure where should I put images? /app /bower_components /config /dist /node_modules /public /tests /vendor I am using ember-cli version 1.13.1.
Undefined
  • 11,234
  • 5
  • 37
  • 62
30
votes
1 answer

Ember - Understanding Inverse Relationships

After reading through the Getting Started guide on Ember's page, I'm still a bit confused what exactly an inverse relationship is, and when to define them. I understand that you will probably need to use them when defining multiple relationships of…
ncksllvn
  • 5,699
  • 2
  • 21
  • 28