These are chat archives for canjs/canjs

20th
Jan 2017
Viktor Busko
@Lighttree
Jan 20 2017 14:34
Guys, what is use case for can.Control today ? In all the tutors can.Component is in use, and what is the case when using can.Control is better ?
Kevin Phillips
@phillipskevin
Jan 20 2017 14:36
There aren't really many situations where you would want to use can.Control directly
sometimes there are performance reasons to use the events object of a can.Component, which internally uses can.Control
say you have a table with 1000 rows that can be clicked on, you would want to use the events object to listen for those click events
instead of setting up 1000 separate ($click)="handleClick()" handlers in the template