observers don't work, because i'm changing the locale for another library, too, which i cannot observe
locks
hhmm
tinobauer
also, i use it all over the place, so i don't want to start messing around with observers
locks
triggering a page reload doesn't work?
Linuus has quit
SaladFork
tinobauer -- there's #reset on the application, but thatll clear out your models and store too
locks
not sure that works
tinobauer: try document.location.reload()
awpeter is now known as awpeter-away
ForSpareParts joined the channel
hyperlink has quit
awc737 joined the channel
maletor joined the channel
H1D has quit
edude03 has quit
nerium has quit
devinus has quit
ryan2049 joined the channel
tinobauer
SaladFork: locks: these are two things i wanted to avoid.
i want to keep all state, just force a rerender
i tried this.container.lookup('view:toplevel').rerender();
but that didn't do anything
edude03 joined the channel
adamesque has quit
ForSpareParts
What’s the canonical way to use query params in a model hook right now? I thought they’d show up on the params argument, but it seems like they don't...
something is confusing me, if you're manipulating the models it should update
tinobauer
so there's no canonical way to rerender, right?
kanja has quit
locks
and like, cascade the changes through the observers
kanja joined the channel
only rerender
Guest15 joined the channel
which you shouldn't have to call yourself typically, because of the data bindings
clov3r joined the channel
vvs has quit
tinobauer
locks: as i said, the data bindings don't make sense.
i don't want to have all my date attributes to observe the locale, that just doesn't make sense
GreenCoal
ForSpareParts: I don't know about canonical, but I had the same issue in my app. What I ended up doing was just doing `this.set('myQP', val)` in the beforeModel hook, since you can get at the QPs from the transition object
locks
ForSpareParts: did you specify in the route which query params you want?
adamesque joined the channel
GreenCoal
locks: you can do that? I thougth QPs were a controller thing
ForSpareParts
locks: yep. and in the controller, too.
locks
GreenCoal: you're supposed to, see the guides
SaladFork
ForSpareParts -- you should get queryParams on the params object in the model hook if you declare the queryparams on the route too
amk_221 has quit
ForSpareParts
locks: the guides tell you to specify them on the Controller
they only mention specifying on routes when they talk about configuring refresh behavior later and stuff
vvs joined the channel
kanja has quit
devinus joined the channel
hm, OK. Maybe my query parameters are getting populated, and I’m just not setting the values right when I transition. derp.
vvs has quit
thejchap has quit
GriffinHeart joined the channel
lislis_ has quit
ur5us joined the channel
clov3r
Any thoughts on an idiomatic way to represent a singleton model?
skoryky joined the channel
If I have a set of Images
and one of them is the background.
rmcafee_ joined the channel
I doesn't feel right to create a new model for it
wldcordeiro joined the channel
mellatone joined the channel
locks
BackgroundImageService
northm has quit
mma has quit
juanpablo_ joined the channel
northm joined the channel
TMM joined the channel
themouette has quit
chillan_ has quit
ryanrauh joined the channel
clov3r
thanks locks
ur5us has quit
wldcordeiro has quit
tinobauer has quit
vampolo has quit
wldcordeiro joined the channel
slik joined the channel
jackw411 has quit
chillan_ joined the channel
nerium joined the channel
KerrickLong joined the channel
KerrickLong
If a Parent hasMany Children, and a Child hasMany Grandchildren, how can I have a computed property that returns all of the Parent's Grandchildren through its Children?
ecmacoder has quit
chillan_ has quit
tonycoco joined the channel
ifeelectric has quit
wldcordeiro has quit
ifeelectric joined the channel
awpeter-away is now known as awpeter
plumbacon joined the channel
zcourts joined the channel
locks
something like children.reduce(function (reduced, child) { reduced.pushObject(child.get('grandChildren')); }), []) ?
devinus has quit
wldcordeiro joined the channel
GreenCoal
KerrickLong: Is this with ember-data, or plain old ember objects?
KerrickLong
GreenCoal: Ember data.
jpweeks joined the channel
hyperlink joined the channel
GreenCoal
Are the relationships async?
peterwagenet joined the channel
jpadilla joined the channel
ifeelectric has quit
KerrickLong
Not explicitly marked as async: true or async: false -- whatever the default is.
But they _are_ using DS.EmbeddedRecordsMixin.
vampolo joined the channel
dadamssg
are there any clever ways of produce the same output as {{render context model}} where context is a variable and not a string?
producing*
GreenCoal
dadamssg: could you use a named outlet?
dadamssg
GreenCoal: ahh yes, forgot about that. thanks!
locks
but {{render context model}} is exactly how you'd do it
GreenCoal
KerrickLong: I ask because I wouldn't want the CP to fire off ajax requests for additional records if they weren't already loaded - CPs shouldn't cause side effects. I think relationships are synchronous by default currently, so I'd think that locks' suggestion should get you about there
thejchap joined the channel
mellatone
Do nested routes (not resources) also have nested templates?
GreenCoal
mellatone: each level has it's own template
KerrickLong
The problem with locks' solution is that the dependent keys don't support nested @each. I'd have to make it dependent upon parent.children.@each.grandchildren.@each.
locks
mellatone: the only difference between routes and resources is that routes do not reset the namespace
mellatone: and you should use routes going forward