These are chat archives for canjs/canjs

4th
Jan 2016
Julian
@pYr0x
Jan 04 2016 19:19
Happy new year from germany
:)
Marshall Thompson
@marshallswain
Jan 04 2016 20:27
If I have parent-component with child child-component, what is the syntax to bring all of the child-component's viewModel into a key on the parent-component's viewModel? Or is it possible?
Julian
@pYr0x
Jan 04 2016 20:31
{^.}="key"
?
Marshall Thompson
@marshallswain
Jan 04 2016 20:32
Thanks. I'll try that out.
Julian
@pYr0x
Jan 04 2016 20:32
Maybe i am wrong :) was my first suggestion
Chris Gomez
@akagomez
Jan 04 2016 22:07
How do you define methods on a can-autorender’ed elements view model? @justinbmeyer @daffl @matthewp
I suppose you have to go full component if you want that.
Justin Meyer
@justinbmeyer
Jan 04 2016 23:24
@akagomez you can pass functions now
but yeah, you can't define methods
I've thought about allowing you to dynamically change an element's viewModel
but it would be a lot of work
and a lot of extra bindings