Questions tagged [ember-1]

Major Version 1 of Ember.js. Ember.js version 1 is an MVC application framework written in JavaScript.

For more general information about the Ember.js framework, please see the tag info for ember.js

25 questions
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
25
votes
1 answer

Ember.js View without Wrapping Div?

I have a 3 column layout in my app. I'm using Semantic UI. So, the layout is:
...
...
...
So,…
Johnny Hall
  • 545
  • 4
  • 12
11
votes
1 answer

Ember-table integration with Ember-model / Ember-data

I am trying to link ember-models to the ember-table to pull paginated records from the server and add them to the table when scrolling down. I can get it working by just requesting my api url with page number like in the ajax example on…
Rick Moss
  • 926
  • 1
  • 17
  • 34
3
votes
2 answers

How to group Ember data records?

I have a route that looks like this: model: function() { return Ember.RSVP.hash({ orders: this.store.find('order') }); }, Which returns all orders. An order has the following fields: id, user_id and product_id. My API returns: [ { id:…
Christian Fazzini
  • 19,613
  • 21
  • 110
  • 215
2
votes
0 answers

Add css classes to in Ember.js

How to add css class to the body tag on specific route? I tried to use body tag in a handlebars template but didn't work... Update: After some googling I came with this solution. Not sure that this is the best way to do this, but it works.…
Tikhon Belousko
  • 767
  • 1
  • 9
  • 26
2
votes
0 answers

Unable to get JSON response from RoR backend using EmberJS and Ember-data

I kno this is a bit tricky question. The thing is I have connected succesfully two models with complex relationships (using joining tables between them and so on) between my Ruby on Rails backend and Ember/Ember-Data through a JSON response. Know,…
1
vote
0 answers

How can I troubleshoot a router.js:958 error while processing route: item in Ember.js?

Any thoughts as to how this can be fixed -- I have not a clue! It works fine until an upgrade is done. I have tried multiple times with various versions but no go. post-upgrade: router.js:958 Error while processing route: item You must provide a…
reSniv
  • 11
  • 1
1
vote
1 answer

Emberjs 1.8 handlebars "view select" set default value/prompt text with variable

I want to set a default value or prompt a text to my select dropdown, I have managed to get the correct content into the select, but I want to be able to have a default value that differs from the content, for example " select country " and then…
Mathal
  • 45
  • 1
  • 7
1
vote
1 answer

Iterating through key-values in ember.js handlebars template

I have a javascript object this.attributes = { key: value, // etc.. } I would like to iterate through it and output key:value Here is my solution: import Ember from 'ember'; export default…
AstroSharp
  • 1,872
  • 2
  • 22
  • 31
1
vote
3 answers

Need to remove the row highlight after select the next row

I need to remove the row highlight when I click on the next table row. When I'm using the below code the table row is highlighted while clicking the menu in the gear icon. Then when I click for the another table row or gear icon the existing table…
Scott Don
  • 127
  • 11
1
vote
2 answers

Highlight row is not getting disappear after I click the next table row

I need to create background as yellow while selecting the gear icon for the menu option in the table row, I have tried the below code for highlighting the table row, var view = Core.view.Menu.create({ model: model, menuContext: { ibmm: ibmm…
Scott Don
  • 127
  • 11
1
vote
1 answer

Ember update causes promises in templates to not wait to resolve

I'm in the middle of an ember 1.12.1 -> 1.13.11 and ember data 1.0.0-beta.19.1 -> 1.13.15 update. I previously had a template: {{a-component parent=model.parent}} and a component parentChanged: on('init', observer('parent', function() { var…
Kelly Selden
  • 1,238
  • 11
  • 21
1
vote
2 answers

Can I still use PromiseProxyMixin with Ember.Controller?

The Ember documentation describes PromiseProxyMixin as: A low level mixin making ObjectProxy, ObjectController or ArrayControllers promise-aware. (Note it does not mention Controller.) I have been using the PromiseProxyMixin in a ModalController…
Kevin Boucher
  • 16,426
  • 3
  • 48
  • 55
1
vote
1 answer

How to change controller property from component?

I have a property in the controller. I want to use a component to update that controller property. The usual component parameter passing works when I'm using a text field like the guides say, but in my case, I'm changing the value in code, not input…
ahnbizcad
  • 10,491
  • 9
  • 59
  • 85
1
vote
1 answer

How to bind dynamic radio buttons to controller property in Ember

I've been really struggling with radio buttons. I just want to dynamically create some radio buttons and then bind the checked radio button to a property on the controller. I tried the answer in this question:…
andy
  • 8,775
  • 13
  • 77
  • 122
1
2