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

Accessing Index in #each in emberjs

Please check out the code attached: http://jsbin.com/atuBaXE/2/ I am trying to access the index using {{@index}} but it seems not to be compiling. I think handlebars supports that: {{#each item in model}} {{@index}} {{item}} {{/each}} It is…
Mohammad Abu Musa
  • 1,117
  • 2
  • 10
  • 32
49
votes
7 answers

Access store from component

i have a component and when user click on component it add some value to store,i try to use this way but i get an error : OlapApp.MeasureListItemComponent = Ember.Component.extend({ tagName: 'li', isDisabled: false, attributeBindings:…
MBehtemam
  • 7,865
  • 15
  • 66
  • 108
48
votes
2 answers

What is the complete list of expected JSON responses for DS.RESTAdapter?

I am attempting to write a custom express.js based server for an Ember.js app. I am getting along fairly well but I'm constantly getting stuck trying to guess what JSON responses Ember Data is expecting at a given moment. This brand new…
James Andres
  • 1,522
  • 14
  • 20
48
votes
5 answers

Ember authentication best practices?

Does anyone have experience creating an authentication mechanism with the new router in pre4? Here are some of my thoughts so far: In order to completely separate the view (Ember app) from the server (Rails app) I want to use token authentication.…
Sean Rucker
  • 1,066
  • 2
  • 11
  • 20
47
votes
5 answers

How to handle 'no route matched' in Ember.js and show 404 page?

How can I handle the error Uncaught Error: No route matched the URL '...' and show a custom 404 page? Note: This question was asked before and answered several months ago - but does not work anymore.
stephanos
  • 3,319
  • 7
  • 33
  • 47
44
votes
2 answers

Differences between Sproutcore and Ember

I had selected sproutcore as a framework right before Ember forked from sproutcore. I am left uncertain of which way to go and a bit frustrated in the apparent dilution of efforts caused by the fragmentation - as rarely does that lead to better…
Troy Harvey
  • 1,365
  • 2
  • 13
  • 24
44
votes
3 answers

JWT Token strategy for frontend and backend

I'm writing an application with a front end in emberjs and backend/server-side in a nodejs server. I have emberjs configured so that a user can login/signup with an 3rd party Oauth (google, twitter, Facebook). I have a backend written in express…
ed1t
  • 8,719
  • 17
  • 67
  • 110
44
votes
3 answers

Ember.js multiple, named outlet usage

I have an application, which will have a view layer organized in three parts: Sidebar Toolbar-left Toolbar-right I have spent may last few hours with trying to find something helpful with google, but I had no luck. I would need a short and…
Eduárd Moldován
  • 1,495
  • 3
  • 13
  • 29
43
votes
5 answers

Using Ember.js, how do I run some JS after a view is rendered?

How do I run a function after an Ember View is inserted into the DOM? Here's my use-case: I'd like to use jQuery UI sortable to allow sorting.
Marc Hughes
  • 5,808
  • 3
  • 36
  • 46
43
votes
4 answers

Uncaught Error: Assertion Failed: calling set on destroyed object

working in ember-cli testing. After all tests passed it returns extra two test with errors. Uncaught Error: Assertion Failed: calling set on destroyed object Source : '../dist/assets/vendor.js:13269' this is one unit test configuration import…
Nininea
  • 2,671
  • 6
  • 31
  • 57
42
votes
4 answers

ember.js and the server

I'm looking at Ember.js and have been reading the docs to try and understand how to use it. I get it (pretty well), except for one thing. To my way of thinking in the MVC pattern, the Model is the repository for data in the application. I can see…
writes_on
  • 1,735
  • 2
  • 22
  • 35
42
votes
4 answers

How should errors be handled when using the Ember.js Data RESTAdapter?

ember-data.js: https://github.com/emberjs/data/tree/0396411e39df96c8506de3182c81414c1d0eb981 In short, when there is an error, I want to display error messages in the view, and then the user can 1) cancel, which will rollback the transaction 2)…
michaelvobrien
  • 521
  • 1
  • 5
  • 3
41
votes
3 answers

Caching remote data in Local Storage with EmberData

I have a question about loading and caching remote objects with Ember. I'm developing an Ember app that uses server-side storage through a REST API. Some of the fetched data is rarely changing, so fetching it from the server each time the…
hannes_l
  • 521
  • 4
  • 6
41
votes
3 answers

Show property which includes html tags

I've an ember property which includes html tags (
, ,

, , and similar stuff). How can i tell ember not to escape this text? Is there any default Handlebars helper from ember, or need I to write my own?

Lux
  • 17,835
  • 5
  • 43
  • 73
40
votes
1 answer

How to use jsTree plugin within Ember

I have used jsTree plugin to render large number of tree node in my product. Now I am in the process of moving to Ember, and need to implement jsTree plugin within Ember. I wrote a Ember component to render my folder structure using jsTree. My…
Jeevi
  • 1,052
  • 1
  • 10
  • 22