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
4 answers

Emberjs increment in the template

I feel like I may be doing to much for a simple problem. If index = 0, how do I increment index in a template. Ideally, I would like to do something like this. {{index+1}} From what I understand the solution is to write a helper function like the…
user2517182
  • 1,241
  • 3
  • 15
  • 37
5
votes
1 answer

How to override default functionality in Ember-addons

In the ember-cli documentation it describes bridging the addon within your host application by overriding the app/component/[addon-name.js] yourself. However, the documentation doesn't explicitly state how to do this. With trial and error I've…
sam
  • 753
  • 1
  • 6
  • 15
5
votes
1 answer

Id is lost while trying to JSON.stringify Ember model

I'm trying to JSON.stringify() the model of a route inside the controller by using the below code. It works and it returns all model attributes, except for the actual id of the model. Can we receive the id as well? var plan = this.get('model'); …
Bogdan Zurac
  • 6,348
  • 11
  • 48
  • 96
5
votes
2 answers

Ember CLI: custom input helper

I'm trying to extend Ember's TextField with UrlField so that if someone forgets to include http://, it does it for them. Here's my View: views/input-url.js import Ember from 'ember'; export default Ember.TextField.extend({ type: 'url', …
Johnny Oshika
  • 54,741
  • 40
  • 181
  • 275
5
votes
3 answers

Ember CLI can't find partial

I am working on an addon. I try to use partial. In my addon/templates/components/form.hbs I got {{partial "pane"}}. My _pane.hbs is in addon/templates folder but ember can't find it: Uncaught Error: Assertion Failed: Unable to find partial with name…
user3568719
  • 1,036
  • 15
  • 33
5
votes
1 answer

Get Current URL in ember JS

I'm trying to get the current url in emberJS but I cannot. I am doing this: App.Route = Ember.Route.extend(Em.I18n.TranslateableProperties, { actions: { didTransition: function (transition) { this._super(); …
Agustin Herrera
  • 363
  • 5
  • 14
5
votes
1 answer

SELF_SIGNED_CERT_IN_CHAIN error when installing bower components

Error while installing bower components, the following error is thrown Request to https://bower.herokuapp.com/packages/ember failed: SELF_SIGNED_CERT_IN_CHAIN.
Vinoth Kumar
  • 1,347
  • 1
  • 14
  • 23
5
votes
1 answer

Ember-cli require("my_app/app")["default"].create is not a function

I'm migrating my project from a situation where it was a nested asset in a Rails app to a separate frontend with Ember-Cli. And I've been stuck with the following problem for quite some time now: When running $ Ember serve in my terminal and opening…
ajeurissen
  • 85
  • 9
5
votes
1 answer

Asset compilation slow for EmberJS

We're in the process of transitioning our front-end to EmberJS and plan to use the Ember CLI which should solve the problem we are currently having. Until that time we have multiple Ember JS applications in our Rails app. Running rake…
dior001
  • 751
  • 1
  • 13
  • 32
5
votes
1 answer

How to render Ember component dynamically

Rendering a component works well when using {{component-name}} in template. I want to render a component from route with dynamic parameters. I've tried this App.ApplicationRoute = Ember.Route.extend({ init: function(){ …
Tomas
  • 1,377
  • 3
  • 17
  • 32
5
votes
2 answers

Access constant in an Ember template

Not sure what the proper "Ember Way" is to do this. I have the following template, where I want to have three task-item-list component instances, each for a different taskState value. Obviously, I would like to get rid of the magic…
chris_st
  • 501
  • 7
  • 19
5
votes
1 answer

Ember CLI Crash on Rebuild after Clean install -- What am i doing wrong?

I have no idea what's wrong but when i change a file in my project, which triggers a rebuild, I get an EEXIST, file already exists error with a reference to a tmp file location. To illustrate please see the following: 1) I start from a clean slate…
SharkLaser
  • 713
  • 1
  • 10
  • 19
5
votes
1 answer

How to compile project's CSS files into one file

By default ember-cli seems to be set up not to compile css files into one (as it does with the JS files). What is the best way to configure ember-cli to merge all files in app/styles (and subdirectories) into one app.css file (and then fingerprint…
chopper
  • 6,649
  • 7
  • 36
  • 53
5
votes
3 answers

How to set itemController in each as (ember 1.11 beta3)?

I want to try use: {{#each content as |product index|}} {{index}} {{/each}} But my app has the itemContoller, like this: {{#each product in content itemController='product'}} If I set this: {{#each content as |product index|…
JeskTop
  • 481
  • 1
  • 4
  • 20
5
votes
2 answers

'equal' is not defined : Ember-qunit does not seem to be importing

It appears the Qunit test methods aren't available even though I'm pretty sure I am importing them correctly. I get the following errors: unit/models/friend-test.js: line 11, col 3, 'ok' is not defined. unit/models/friend-test.js: line 17, col 3,…
steve_gallagher
  • 3,778
  • 8
  • 33
  • 51