I am trying to get the most basic thing working: show data from a model in a list. I have 4 items in firebase, and I see my list at /tasks has been generated with 4 items, but the title for each one is blank. No idea what I am missing here. I see the data is correct in ember inspector. Commit here: https://github.com/rxlabs/ember-experiments/com...
mellatone has quit
Weezey has quit
Pupeno joined the channel
Pupeno has quit
Pupeno joined the channel
Weezey joined the channel
jonnn joined the channel
sandstrom joined the channel
jrm2k6 joined the channel
annlewis joined the channel
annlewis has quit
hilem joined the channel
true_droid has quit
ur5us joined the channel
oak1 joined the channel
bonsaielectric has quit
jakemauer
@RazorX, start small, in your task-list template, try outputting task.title under your each. If that works, then move on to see if it's the task-item component that's going wrong
juanpablo_ joined the channel
Also if you just put task under your each, does it output 4 things that render in the dom as like OBJECT::123x
juanpablo_ has quit
locks
boo emblem :P
RazorX
jakemauer: Thanks, but I actually did try something like that. Same result, a list but with no titles.
jakemauer: Yea, basically I get 4 li elements with no content.
locks
the code looks ok
are you sure the models have the attributes filled in?
check ember inspector
RazorX
In ember inspector I can see the data with the ids and titles.
locks
try printing the ids
RazorX
That is partly why I am so stumped. Same issue if I use task.id.
mellatone joined the channel
locks
RazorX: can you just do an each in the tasks template?
instead of calling the components
RazorX
locks: Ok. Yes same issue with just putting the loop in the tasks template and not using components.
locks
doesn't sound like the models are properly loading then
RazorX
Yea, I can try returning a static json object as a test, but I wasn't sure of the correct format.
bmac joined the channel
annlewis joined the channel
Something like replace this.store.findAll('task') with [{id: 1, title: "test"}]
locks
yup
or just the title
RazorX
Same issue, it will always show the correct number or data elements but never any content.
annlewis has quit
rakm joined the channel
ur5us has quit
I was hoping I was just missing something really obvious. Any chance this is a bug?