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
386
votes
3 answers

SPA best practices for authentication and session management

When building SPA style applications using frameworks like Angular, Ember, React, etc. what do people believe to be some best practices for authentication and session management? I can think of a couple of ways of considering approaching the…
372
votes
18 answers

Separate REST JSON API server and client?

I'm about to create a bunch of web apps from scratch. (See http://50pop.com/code for overview.) I'd like for them to be able to be accessed from many different clients: front-end websites, smartphone apps, backend webservices, etc. So I really want…
sivers
  • 3,833
  • 3
  • 14
  • 7
248
votes
1 answer

What are the key differences between Meteor, Ember.js and Backbone.js?

Learning Ember.js / Backbone.js has been on my to-do list for a while. Now that Meteor is out, I am just wondering if anyone with experience of Meteor, Ember.js and Backbone.js can summarize the key differences and pros and cons of these three…
K Z
  • 29,661
  • 8
  • 73
  • 78
240
votes
10 answers

Token Authentication vs. Cookies

What is the difference between token authentication and authentication using cookies? I am trying to implement the Ember Auth Rails Demo but I do not understand the reasons behind using token authentication as described in the Ember Auth FAQ on the…
John
  • 13,125
  • 14
  • 52
  • 73
218
votes
6 answers

How to implement not with if statement in Ember Handlebars?

I have a statement like this: {{#if IsValid}} I want to know how I can use a negative if statement that would look like that: {{#if not IsValid}}
Kapil Garg
  • 3,100
  • 5
  • 19
  • 19
205
votes
1 answer

ember-cli-code-coverage mocha showing 0% coverage when there are tests

I'm using ember-cli-code-coverage with ember-cli-mocha. When I run COVERAGE=true ember test I'm getting 0% coverage for statements, functions, and lines. Yet, I have tests that are covering those sections. Any I missing something in my setup? unit…
wwwuser
  • 6,282
  • 8
  • 52
  • 64
143
votes
3 answers

Views vs Components in Ember.js

I am learning ember.js, and I am trying to understand the difference between a view and a component. I see both as a way of making reusable components. From Ember's website on views: Views in Ember.js are typically only created for the following…
Bradley Trager
  • 3,570
  • 3
  • 26
  • 33
114
votes
1 answer

What is the difference between a route and resource in New Router API?

I am trying to understand the difference between a Route and a Resource. The way I understand Resource helps to set sub paths of a Route object to another Route Object. But its unclear when i think of default name mapping happening for paths as…
thecodejack
  • 12,689
  • 10
  • 44
  • 59
105
votes
10 answers

How to architect an Ember.js application

It's been difficult to keep up with the evolution of Ember JS as its approached (and reached!) version 1.0.0. Tutorials and documentation have come and gone, leading to a lot of confusion about best practices and the intent of the original…
Craig Labenz
  • 2,489
  • 3
  • 22
  • 17
98
votes
3 answers

Ember.js or Backbone.js for Restful backend

I already know that ember.js is a more heavy weight approach in contrast to backbone.js. I read a lot of articles about both. I am asking myself, which framework works easier as frontend for a rails rest backend. For backbone.js I saw different…
Robin Wieruch
  • 14,900
  • 10
  • 82
  • 107
96
votes
1 answer

What is Ember RunLoop and how does it work?

I am trying to understand how Ember RunLoop works and what makes it tick. I have looked at the documentation, but still have many questions about it. I am interested in understanding better how RunLoop works so I can choose appropriate method within…
Aras
  • 5,878
  • 9
  • 49
  • 76
95
votes
15 answers

Iframe in Chrome error: Failed to read 'localStorage' from 'Window': Access denied for this document

I have a web app which uses localStorage. Now we want to embed this web app on other (third-party) sites via iframe. We want to provide an iframe embed similar to youtube so that other websites can embed our web app in an iframe. Functionally it is…
90
votes
9 answers

How can I execute array of promises in sequential order?

I have an array of promises that need to run in sequential order. var promises = [promise1, promise2, ..., promiseN]; Calling RSVP.all will execute them in parallel: RSVP.all(promises).then(...); But, how can I run them in sequence? I can…
jaaksarv
  • 1,440
  • 1
  • 11
  • 16
86
votes
8 answers

How to use multiple models with a single route in EmberJS / Ember Data?

From reading the docs, it looks like you have to (or should) assign a model to a route like so: App.PostRoute = Ember.Route.extend({ model: function() { return App.Post.find(); } }); What if I need to use several objects in a…
Anonymous
  • 6,181
  • 7
  • 45
  • 72
80
votes
9 answers

Recommended way to include bootstrap library in Ember.JS ember-cli App

I am trying to install properly Twitter Bootstrap in my current ember-cli project. I did install bootstrap with bower : bower install --save bootstrap Now the library is downloded in /vendor/bootstrap/dist/(css|js|fonts) I tried what is mentioned…
Guidouil
  • 1,694
  • 2
  • 18
  • 18
1
2 3
99 100