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

EmberJS no model was found but it's there

I'm writing an ember-cli app. I have the following model: // app/models/school.js export default DS.Model.extend({ name: DS.attr('string', { defaultValue: '' }) }); It was generated using an ember generator like all my other models. It has a…
Hugo
  • 2,186
  • 8
  • 28
  • 44
5
votes
3 answers

Ember Cli not compiling with broccoli-emblem-compiler

I am trying to set up this repository locally https://github.com/lrdiv/ember-soundcloud and i have come across to this issue with broccoli-emblem-compiler. See the image in attached From my understanding the broccoli-emblem-compiler is not able to…
Koala7
  • 1,340
  • 7
  • 41
  • 83
5
votes
3 answers

Ember CLI - RESTAdapter for 3rd party API

I can get data into my app with ic.ajax, but it seems like I should be using the RESTAdapter. The explanations are so simplified, that I'm not sure what to do in various cases. This is what I think should work: (and does with fixtures, a local…
sheriffderek
  • 8,848
  • 6
  • 43
  • 70
5
votes
2 answers

Referencing asset in javascript

The Ember CLI guide describes how assets can be referenced in the templates and the CSS - but what is the proper way of referencing an asset (say an image) from my javascript code? Specifically I am concerned about the asset path getting…
chopper
  • 6,649
  • 7
  • 36
  • 53
5
votes
1 answer

Ember-Cli refactoring to use pods

I have just started to refactor our Ember application to use Pods so that our directory/file structure is more manageable. At the same time i have upgraded Ember-Cli so I am running with the following configuration: Ember : 1.8.1 Ember Data :…
5
votes
1 answer

Ember.Application.create vs Ember.Application.extend

I noticed that in the app.js file produced by Ember CLI (v0.1.12), they're using: var App = Ember.Application.extend({...}) but in the introduction guide, they're using: window.App = Ember.Application.create({...}); Is there any difference in…
user1816877
5
votes
1 answer

How does import statements work in ember-cli?

Am quite new to emberjs and ember-cli. And I have always been wondering how a statement like this works: import Ember from 'ember' Does 'ember build' look up for 'ember' in node_modules? I understand statements like this with relative paths: import…
droidbot
  • 937
  • 1
  • 10
  • 26
5
votes
2 answers

Ember-CLI without Ember Data, use plain ember object instead

I use Ember-CLI to build my ember application, but I don't want to use Ember Data. By default, when you type this command: ember generate model Person, ember-cli would create a js file under models named "person.js", and it will be a DS.extend(...).…
Cokorda Raka
  • 4,375
  • 6
  • 36
  • 54
5
votes
1 answer

how do you change base/root url in ember cli from default root '/' to '/home'?

I have generated a route 'home' and I would like to change my base url '/' to be 'home' i have tried adding this line of code to the router.js App.Router.reopen({ rootURL: '/blog/' }); I have also tried setting my base-url in…
nhic0tine
  • 71
  • 1
  • 5
5
votes
1 answer

How do I create a partial in Ember?

I cannot put it more simply. I just want a step-by-step guide of how to create a handlebars partial in ember.js. I cannot find a proper one anywhere!! Where should partials be saved? How do I pass arguments to a partial? Do I need an underscore at…
Marco Prins
  • 7,189
  • 11
  • 41
  • 76
5
votes
2 answers

Test for throwing Errors in Ember.js

Using the integrated QUnit testing framweork I need to test wether or not visiting a route causes an Error to be thrown. There is a Handlebars helper in the route that should throw an Error under certain conditions (failed Assertion). How do I test…
buschtoens
  • 8,091
  • 9
  • 42
  • 60
5
votes
2 answers

What does the `this._super(controller,model)` mean in an Ember Router?

I have seen in EmberJS code and discussion {no references supplied} the following: Code route.js setupController: function (controller, model) { this._super(controller,model); // More code }, Questions What is the call to…
datUser
  • 287
  • 7
  • 20
5
votes
1 answer

How do i split my Ember CLI addon into a vanilla Ember library and an Ember CLI addon wrapper?

I've created my first Ember CLI addon by following the instructions from the Ember CLI homepage. The addon works fine and it already has a couple of stars on Github: https://github.com/lolmaus/ember-cli-stained-by-children The problem is that it's…
Andrey Mikhaylov - lolmaus
  • 23,107
  • 6
  • 84
  • 133
5
votes
1 answer

Iterating over two arrays at time without breaking bindings

I have a component that accepts an array of values and array of the same length with a validation error string for each value. I'd like to display a list of form fields with inputs for each value and error pair. I've tried creating a computed…
pmdarrow
  • 734
  • 5
  • 14
5
votes
1 answer

Ember update parent route's model after save record

I'm working on an Ember application with the intent of learning. I've setted on a UI where a parent route and template when first opened features a table of, for example, today’s items in the left hand column, and an area to the right that varies:…
Gordon Isnor
  • 2,065
  • 1
  • 19
  • 32
1 2 3
99
100