These are chat archives for canjs/canjs

3rd
Oct 2018
Julian
@pYr0x
Oct 03 2018 14:34
@justinbmeyer here is a example about our discussion
Viktor Busko
@Lighttree
Oct 03 2018 15:35

@phillipskevin Hi, if you are interested I found workaround for the issue that I had here:
https://gitter.im/canjs/canjs?at=5b90dfb5f5402f32aae63c4d

https://codepen.io/Lighttree/pen/VEvqwM

I store all translations in DefineMap instance and use it in helper.
Key point here is to to call get/set on defineMap and return same from helper. It started to work.
This forced me to go away from text nodes but I think they brought more issues as result.
I hope that having text props in observable won't hit performance.

Justin Meyer
@justinbmeyer
Oct 03 2018 18:54
@pYr0x just an FYI ... <content> is ignored within a mounted component
Is that what you wanted?
Justin Meyer
@justinbmeyer
Oct 03 2018 19:00
Here's an example with everything working I think: https://codepen.io/justinbmeyer/pen/ePZmgY?editors=1010
Gregg Roemhildt
@roemhildtg
Oct 03 2018 21:59
+1 @justinbmeyer
Gregg Roemhildt
@roemhildtg
Oct 03 2018 22:15
Very useful!
Are these possible now too?
on:click="this.prop ++"?
Justin Meyer
@justinbmeyer
Oct 03 2018 22:30
I was just asked that. The ++ expression is not supported. We’d need to update the parser. (Not hard if one knows parsing)