These are chat archives for canjs/canjs

28th
Dec 2017
Gregg Roemhildt
@roemhildtg
Dec 28 2017 15:26
Hi guys, is using data in a template binding property name not allowed?
like object:from="data"
Gregg Roemhildt
@roemhildtg
Dec 28 2017 15:41
Not sure how, but in one of my components, I was doing this, and object now becomes an object with something like
{ 
    fn: 
    metadata: {}
}
Gregg Roemhildt
@roemhildtg
Dec 28 2017 16:07
this is with can-stache 3.14.6
Kevin Phillips
@phillipskevin
Dec 28 2017 16:15
if you put a {{debugger}} there and then do get("data") when the breakpoint is hit, what does it give?
Gregg Roemhildt
@roemhildtg
Dec 28 2017 16:20
It loggs the correct object
Frank Lemanschik
@frank-dspeed
Dec 28 2017 16:26
I expirenced that object issue also
It happened as I converted a bigger app
The reason was that can define now Handel's something different
I solved it via explicitly following to define properties right like data.value
Then it worked all
Gregg Roemhildt
@roemhildtg
Dec 28 2017 16:29
Yep. I just changed it to "object" instead of "data"
Frank Lemanschik
@frank-dspeed
Dec 28 2017 16:29
So data is a blocked property name?
I don't think so but I will verify that
Kevin Phillips
@phillipskevin
Dec 28 2017 16:33
if that is the case... can you submit an issue @roemhildtg ?
Gregg Roemhildt
@roemhildtg
Dec 28 2017 16:34
on can-stache?
Kevin Phillips
@phillipskevin
Dec 28 2017 16:37
can-stache-bindings I think
Nico R.
@nriesco
Dec 28 2017 17:53
@phillipskevin I’ve seen you recommend using {{debugger}} that is new for me, is there any example or documentation about it? thanks
Kevin Phillips
@phillipskevin
Dec 28 2017 18:06
yep, that's it :thumbsup: