Ember.js is an advanced HTML5 MVC application framework written in JavaScript.
1
vote
1answer
9 views
Ember.js onewayBinding is not working for objects
Does anyone tried oneway binding in ember.js? It is not working for me.
Here is my snippet.
App.UserController = Ember.ObjectController.extend({
user : { "name" : "Albert"} ,
...
1
vote
1answer
10 views
Bound helper taking parameter as string not value of property
I'm new to Handlebars (and Ember) so this may be me making a tragically simple mistake but I'm feeling confounded enough that I'm hoping someone else can look at this.
I have a simple handlebars ...
0
votes
0answers
4 views
How to handle server response errors with ember data
What is the ember-data's current default expected response from the server if it got something other than 200, so it doesn't throw an uncaught exception but instead parses the errors for later use?
...
1
vote
0answers
15 views
Ember multiple view in same template
Im expanding the Todo example of emberjs main site ->
http://emberjs.com/guides/getting-started/accepting-edits/
I try to add an extra field to the model called body, and add the same logic, ...
1
vote
1answer
30 views
Invoking Ember.js controller function by automating action
Currently my site includes a search bar in my index.ejs file that uses {{action createSearch}} to call my controller's "createSearch" function when a user presses enter or clicks my search button. ...
0
votes
0answers
15 views
How can I loop through two different models on one route
I am trying to loop through two different models on a single route. What is best practice to do this?
Thanks!
0
votes
0answers
7 views
Ember transitionTo not working in resolve promise
When I try to use transitionTo in an RSVP promise resolve block, it does not work.
The same transitionTo outside the block does.
Anyone have a clue?
2
votes
1answer
23 views
Update an ember.js view when content is dropped
I'm trying to implement drag and drop with Ember.js. I have everything working except getting the view to update at the end. Here's a jsfiddle:
http://jsfiddle.net/rsaNy/
If you drag something ...
0
votes
1answer
20 views
EmberJS re-use same template, but displays the template twice
I am playing with Ember, and building a basic contact management app to learn Ember. I am following the Emberjs getting started guide. Only instead of doing a "to-do" app, Im doing my own thing in ...
1
vote
1answer
25 views
ItemController does not work when we have a seperate controller for View
Part of learning Ember.js I am trying to create a Table View in Ember, based on example by Adam.
The issue I am facing is that if I create a seperate controller for the View and include an ...
1
vote
1answer
17 views
Listening to a store event
In my App.NodesIndexController I am doing something like:
destroyAllRecords: function () {
var _this=this;
Bootstrap.ModalPane.popup({
heading: 'Warning',
message: 'Are you ...
0
votes
1answer
12 views
Change a view property from an unrelated controller
I have the following view:
App.MessageTrayView = Bootstrap.AlertMessage.extend({
message: 'This is a message.',
});
Displayed in this template:
<script type="text/x-handlebars" ...
1
vote
1answer
26 views
Dynamic models to default value
I have a model that represents an activity. Activities have several standard properties like "start_time", "type", "sub_type", etc. but then each type of type/sub-type will have a set of properties ...
1
vote
1answer
30 views
How to trigger an action on a controller from a template
I have this jsbin. My problem is that I am trying to trigger an action:
<a {{action controllers.nodesIndex.destroyAllRecords this}}><i class="icon-remove-circle"></i><a/>
...
0
votes
0answers
21 views
Polymorphism in ember models
I am fairly new to Ember and have hit a problem. I have 2 Models, Question and Post which are of type Message:
App.ListItem = DS.Model.extend({
Id: DS.attr('string'),
messageType: ...