These are chat archives for canjs/canjs

2nd
Jan 2019
Gregg Roemhildt
@roemhildtg
Jan 02 14:34
Seems those complaints get shown when the ts compiler gets enabled in the user preferences
Hoping to use vscodes type inference
Julian
@pYr0x
Jan 02 15:34
hey guys... anybody knows if canjs 2.x had some event bindings in mustache?
i want to have something like on:click="foo()"
Matthew Phillips
@matthewp
Jan 02 15:35
mustache or stache?
either way, i think can/view/bindings works for both
Julian
@pYr0x
Jan 02 15:35
mustache
Matthew Phillips
@matthewp
Jan 02 15:35
but not on:click
Julian
@pYr0x
Jan 02 15:35
canjs 2.x?
Matthew Phillips
@matthewp
Jan 02 15:35
2.3 had (click)="foo"
I'm not sure about 2.2
or before
Julian
@pYr0x
Jan 02 15:36
i have 2.2.9
Matthew Phillips
@matthewp
Jan 02 15:38
i believe it was can-click="foo" then
but we didn't have call expressions at the time
can-EVENT where event is any event
Kevin Phillips
@phillipskevin
Jan 02 15:39
($click)="doSomething()"
is the v2 version
Kevin Phillips
@phillipskevin
Jan 02 15:39
can-click should also work
Matthew Phillips
@matthewp
Jan 02 15:39
Hey! our docs are still working :)
Kevin Phillips
@phillipskevin
Jan 02 15:40
of course :)
Matthew Phillips
@matthewp
Jan 02 15:40
@kevin ($click) was 2.3 and above
Julian
@pYr0x
Jan 02 15:40
Uncaught Error: Parse Error: <button ($click)="bar()"></button>
in 2.2.x
so i will try can-event
:)
Kevin Phillips
@phillipskevin
Jan 02 15:41
ah, thanks @matthewp