I've got a change to an ember-data model with a property that's being clobbered somewhere between where the route returns it and the page is fully rendered - what would be the best place to look for debugging this?
tlarevo has quit
knownasilya joined the channel
artto joined the channel
ambrosia joined the channel
artto has quit
sajt has quit
locks
clobbered how?
p1k
as in it's a property which is defined by a setup method from the model hook, but by the time the page is fully rendered it is null
if I use a normal property instead of an ember-data attribute it is still set when the page has finished rendering
Imaginativeone joined the channel
so I suspect it's something weird with the ember-data life-cycle
locks
share some code
p1k
mhm I could try to make a minimal test-case (which would be complicated) and also might no longer be a problem, since the ember version is out of date (1.9.0)
nicobot has quit
is there a good place I could add logging in the ember run loop?
locks
no idea, there are a bunch of flags you can try setting to true
hello... quick question. I'd like to achieve the following: /book would render a list of books /book/1 would render a chapter list of book 1 and /book/1/1 would render chapter view. what would be the easiest but still Ember way to do this?
aaah, I totally was trying something else with routes ... and didn't work :) thanks locks
nhhagen joined the channel
nhhagen_ has quit
locks
can you post what you were trying?
it depends on the kind of structure you want
danlynn joined the channel
NullVoxPopuli_ joined the channel
annlewis joined the channel
NullVoxPopuli has quit
khoapham joined the channel
nhhagen has quit
quaj has quit
annlewis has quit
khoapham has quit
edude03 joined the channel
Guest2506 has quit
nicobot joined the channel
MartinElvar joined the channel
edude03 has quit
imehesz
locks, I was trying something with route resources ... but your suggestion seems to be working, so i'll just use that
krawchyk joined the channel
sajt joined the channel
locks
this.resource is deprecated
allcentury has quit
krz has quit
krz joined the channel
annlewis joined the channel
nerium has quit
nerium joined the channel
kp666 has quit
kp666 joined the channel
edude03 joined the channel
quaj joined the channel
glennfu joined the channel
glennfu has quit
allcentury joined the channel
annlewis has quit
quaj has quit
juanpablo__ joined the channel
coulix_tap joined the channel
diamondgfx joined the channel
jonnn joined the channel
kroofy joined the channel
juanpablo__ has quit
AAoK joined the channel
MartinElvar has quit
quaj joined the channel
nsutt joined the channel
Krazylegz
I'm trying to use data passed in to a component with attributeBindings in Ember 2.1.0, but it shows up as undefined. Should this work? Should I work up an example?
p1k
locks: so I made an ember-twiddle with the same behaviour
locks
Krazylegz: you should work up an example
p1k: link it
Krazylegz
locks: Will do.
jonnn has quit
ryanRT joined the channel
allcentury has quit
allcentury joined the channel
kroofy has quit
dcherman joined the channel
jdhines joined the channel
jdhines
How can I replace existing store data in my model hook? When navigating to one of my routes, I am calling findAll() and I want it to replace whatever is in the model, but it's just adding to whatever is there
The API is getting called, but it's not setting the result to my model. For example, if the API should return an empty object, i cant get that to override my model and essentially clear it out.