and nested under that I have a 'page' route for pagination
lnmunhoz joined the channel
I've got it right now so it's rendering the page route's template above the posts' template
but I guess I'm not sure how to get the page's template to replace posts' instead of displaying both
ForSpareParts joined the channel
pereira_alex joined the channel
pereira_alex has quit
pereira_alex joined the channel
edwinvdgraaf has quit
nlh joined the channel
tomlane has quit
srsgores has quit
SteelVelvet has quit
yaymukund has quit
thedeeno has quit
thedeeno joined the channel
Grapho has quit
poze has quit
juanda joined the channel
sandstrom joined the channel
bbankes joined the channel
oak1 joined the channel
ugisozols has quit
domme has quit
yn5 has quit
benlieb
Inside an observer Ember.observer('value', 'value2', function() {}) is it possible to know which of the watch values triggered the observer?
jpweeks joined the channel
ForSpareParts has quit
yaymukund joined the channel
alexspeller
benlieb: I don't believe so, but it's possible the arguments reveal it?
DoctorDalek: route nesting === template nesting
DoctorDalek: if you don't want nested templates, don't have nested routes
ForSpareParts joined the channel
blu____ joined the channel
pixelhandler joined the channel
_1009 has quit
blu____
i have some computed prop that observes model and for some reason, it's be triggered twice
unenglishable joined the channel
lnmunhoz has quit
ForSpareParts has quit
on init
anyone know how i can debug this so i can see where its being modified twice?
dickdaley joined the channel
basically its being fired once with the correct state and a second time with the incorrect state
if i remove this._super.apply(this, arguments); from my setupcontroller, i lose the correct state instance
i haven't been able to track down what's triggering the bad state
Duckily joined the channel
ForSpareParts joined the channel
buehler?
kzsh joined the channel
Taftse|Mac has quit
hjr3 joined the channel
whoa
im in the container tab in ember inspector
and for some reason i have two instances of a controller
tomlane joined the channel
bbankes joined the channel
oak1 has quit
is this normal?
dixon
blu____: I usually debounce observers because I've found that there are a lot of instances where we are observing properties in views. These fire twice because the view is initially null and the observer fires then, after it is inserted into the dom, it changes and fires again.
blu____
to have two controllers for the route yore in?
digitalsadhu joined the channel
dixon
The real solution is not to use observers. They're brittle.
blu____
yeah ive heard their going the way of the dodo recently
what's a good replacement?
allcentury has quit
alexspeller
blu____: observers that are not used to affect non-ember state are a code smell IMO
dixon
you need to change your mindset. Use a more functional programming paradigm rather than relying on side effects.
alexspeller
blu____: so an observer that observes some data and renders a d3 visualization is fine. An observer that sets other ember properties is not
hglattergotz has quit
blu____: there are very few cases where you can't use computed properties to have the data flow that you need
ForSpareParts has quit
kellysutton joined the channel
dixon
The way I think of it is that you're trying to change your programs state with an observer. Instead, you should explicitly transition through the route.
sandelius has quit
kellysut_ joined the channel
kellysutton has quit
domme joined the channel
cinnamon_bun joined the channel
cinnamon_bun
if I have a nested route like foo/bar/baz, how do I get access to the 'bar' controller from the 'baz' controller?
I tried needs: ['bar'] and var barController = this.get('controllers.bar'); but it died on the 'needs' line
notmessenger has quit
amiel__
cinnamon_bun: depending on how you set up your routes, you might need `needs: ['foo.bar']`
cinnamon_bun
ember492>#needs must not specify dependencies with periods in their names
amiel__
uh
maybe it's `foo/bar` then
MartinElvar joined the channel
cinnamon_bun
seems ok. then it has to be 'controllers.foo/bar' in the getter
pereira_alex has quit
kellysut_ has quit
wehlutyk joined the channel
dickdaley has quit
xxtjaxx joined the channel
rpkilby has quit
sly7_7 joined the channel
mypitit has quit
mypitit joined the channel
juanda has quit
cinnamon_bun has quit
xxtjaxx has quit
andymocahey has quit
juanda joined the channel
thedeeno
How would one merge app/components/**/*.css files into app.css with ember cli?
I'm using broccoli-concat to merge all the `app/components/**/*.css` files
It looks like ember-component-css uses mokey patching to get this job done. That seems odd
ur5us joined the channel
cezarykluczynski has quit
ForSpareParts has quit
kzsh has quit
kzsh joined the channel
jakemauer joined the channel
komlev has quit
oncenull joined the channel
kzsh has quit
scottn_work has quit
KhoaPham joined the channel
NoiseEee has quit
cinnamon_bun joined the channel
unenglishable has quit
pixelhandler has quit
jkay has quit
krz has quit
enspandi has quit
Duckily
WebSpirit: hey there, sorry i had to leave the office yesterday. “WebSpirit: so, if I'm looking at employee WebSpirit the flag could be on or off, depending on the time period I've chosen?” correct
tubbo has quit
so depending on if you have any issues with your shifts in that period, the flag should show next to employee