Tagged Questions
1
vote
1answer
35 views
Ember creating a record different than the current controller
So I'm making a little toy ember app that will present a user with some improv prompts to create a comic strip out of. After a certain amount of time, the user will be able to upload their completed ...
1
vote
1answer
58 views
Ember.js - how to filter a model?
I'm trying to figure out how to best approach creating a method to pull specific objects based on an attribute using Ember.js.
Right now my model looks like this:
App.Resume = ...
1
vote
1answer
29 views
Controller properties displaying as [object Object] (when using coffeescript)
I have a controller written in CoffeeScript as follows:
class App.SidebarController extends Ember.ObjectController
namez: (->
@get('name')
).property()
This however returns as [object ...
5
votes
1answer
207 views
Displaying a model associated with a separate controller
I have a model WebsiteTemplate that belongs to a WebLayout. In the UI I want to display a list of all of the webLayouts but be able to have an html class added to the one whose id is the same as ...
0
votes
0answers
53 views
How to render a template in Ember when the URL is manually entered, not clicked through
I'm pulling a bunch of json data from an external api app. I have a group model:
Mdm.Group = Ember.Object.extend()
Mdm.Group.reopenClass
all: ->
Mdm.ajax(
url: Mdm.apiUrl('/groups')
...
0
votes
1answer
121 views
Simple Ember.js Relationships
I'm new to ember.js and I'm struggling a bit with setting up relationships between Ember Data Objects. Sorry I haven't done my google-due-diligance - I'm still so new to it that I don't even know what ...
2
votes
2answers
52 views
Ember: how do you access the model from the router?
Based on what I've read (please correct me if I'm mistaken), the logic that handles when a model should be saved and where to transition next should be in the router.
If that is the case, I'm running ...
1
vote
0answers
62 views
Emberjs view binding for Google maps markers
I have a /companies route set up which uses my Company model to retrieve companies. I also have a Map view which I'm trying to display my companies on. I can't seem to find a way to get the list of ...
1
vote
1answer
84 views
Is there a way to get access to the Ember model within a nested view?
I'm trying to get access to the model for an ember model object that I'm currently editing. I'm rendering a view:
{{view App.RemarkTextField valueBinding="content"}}
And here's the view:
...
0
votes
2answers
135 views
Setting the Ember root URL without redirection
Let's say my Router looks like this:
Bananas.Router.map ->
@resource "bananas", ->
@route 'index', path: '/'
and my BananasIndexRoute looks like this:
Bananas.BananasIndexRoute = ...
0
votes
0answers
59 views
Getting the object corresponding to a view event
I'm trying to create an editable list control using an Ember view. This control should add items to the list when the user presses enter and remove item to the list when they're empty and the user ...
0
votes
1answer
250 views
Ember Uncaught RangeError: Maximum call stack size exceeded
I'm trying to build a simple CRUD like EmberJS application that works on a single model.
My routes look like this currently:
Blog.ApplicationRoute = Ember.Route.extend()
Blog.Router.map ->
...
0
votes
1answer
303 views
Ember.js - How can I bind a property of a model class to a controller?
I'm trying to somehow bind a property of the following model to a controller so that when the model has completed its async call the length property of the model is set and the controller is then ...
1
vote
2answers
349 views
Emberjs integration testing with konacha
Having trouble doing integration testing with Konacha on Ember.js 1.0.rc1. My problem is that all tests run before any views are rendered. Is there a way to know when everything has been rendered ...
1
vote
2answers
79 views
How to specify computed property dependency in EmberJS on an array of objects that contain another array
I am using EmberJS and I am trying to setup the dependency on a computed property. A visitor can contain multiple tickets (an array), and I have access to an object containing an array of visitors. ...