These are chat archives for canjs/canjs

9th
Feb 2016
the-learning-man
@the-learning-man
Feb 09 2016 00:43
@daffl is there a fix for the above?
the-learning-man
@the-learning-man
Feb 09 2016 01:20
current workaround was to add paths: { can: /local-file.js’ } to the compile options.
and use a local copy.
Alex
@whitecolor
Feb 09 2016 15:08
useful (and fun) analisys esp in term of promotion of canjs/steal/donejs
Guido Smeets
@gsmeets
Feb 09 2016 15:11
hmm, I'm playing around a bit with the 2.3 bindings, and I'm wondering something

say my root component has this template:

<comp-one>
     <comp-two (foo)="bar()" />
 </comp-one>

this triggers the bar method on comp-one's view model.
is there some way to trigger a method on the view model of the root component?

Matthew Phillips
@matthewp
Feb 09 2016 15:39
the root component being comp-one?
I would think ../bar() should work
Guido Smeets
@gsmeets
Feb 09 2016 15:46
the root component is not in the snippet
the snippet above would be the stache file of that root component
so it's view model would be addressed by @root in 2.3 I think
(still trying to figure out all the 2.3 syntaxes. :))
you're right though, ../bar() works
I would've expected @root/bar() to also work
Matthew Phillips
@matthewp
Feb 09 2016 16:26
@root is %root in 2.3
%root/bar() wouldn't work though
%root.bar() might
not sure
Guido Smeets
@gsmeets
Feb 09 2016 16:29
Ah, I'll give that a go after dinner, thx
Justin Meyer
@justinbmeyer
Feb 09 2016 19:34
ChangeProps.001.png
ChangeProps.002.png
cc @akagomez
1st graph shows that change propagation can update the DOM faster when there's about 10 items.
ChangeProps.006.png
but that's the big problem
the initialization time