These are chat archives for canjs/canjs
on:input:value:to="todo.name"throw an error because
todois an asynchrone getter and does not have the property
name. asynchrone getter does not set the value of the property
Guys, Is there such term in
CanJS as "representational component" (dumb) ?
For example If I need to render table with data in several places. I can do 2 things:
can-componentthat has no logic, but takes data from bindings.
.stachefile, import it and pass data.
Is there any benefits / drawbacks in using these approaches ? What do you prefer ?
stachetemplate and move to a component when things get more complicated
Guys, I have interesting case...
I'm working on "Toaster" component (for notifications) and want to add 'showToast' method.
But it seems that
CanJS has something against this name :D
If you check the example above there are 2 identical functions named
showToast doesn't work in some reason.
I've added another method called
showToast started to work, but it calls
toast method not
showToast method :D
somethingin name. Just tried
showTomessageand got the same issue.
on:input:value:tomakes it throw