These are chat archives for canjs/canjs

12th
Oct 2016
Eben
@eben-roux
Oct 12 2016 04:14
@chasenlehara I'm no genius with this stuff but it appears to work if you change the binding around from prop="{prop}" to {prop}="prop"
Chasen Le Hara
@chasenlehara
Oct 12 2016 05:30
@eben-roux, you’re right, but for my project, I need it two-way bound :/
My use case is that the property is actually a model object that might be refreshed by something else in the page, or I might need to change it by passing it through a couple of components.
Eben
@eben-roux
Oct 12 2016 08:04
oh, I see your point :)
Gregg Roemhildt
@roemhildtg
Oct 12 2016 13:25
@chasenlehara Shouldn't your two way binding syntax look like this? <my-component {(some-prop)}="value"/>
Chasen Le Hara
@chasenlehara
Oct 12 2016 17:58
@roemhildtg I’m still getting used to the new binding syntax. :P
Gregg Roemhildt
@roemhildtg
Oct 12 2016 17:59
Yeah me too. I get the order of the brackets and parentheses mixed up all the time
Nico R.
@nriesco
Oct 12 2016 18:07
@chasenlehara I find bindings very complex to understand. If you have any good examples please share them :-)
Gregg Roemhildt
@roemhildtg
Oct 12 2016 18:08
Chasen Le Hara
@chasenlehara
Oct 12 2016 18:09
^^ same
Gregg Roemhildt
@roemhildtg
Oct 12 2016 20:11
Does anyone know, does can-connect have a way to save multiple objects at a time? Instead of calling connection.save(object), I'd like to save a bunch of objects with one request.
Nico R.
@nriesco
Oct 12 2016 20:36
An array of objects?
Gregg Roemhildt
@roemhildtg
Oct 12 2016 20:38
Yup
Thomas Sieverding
@Bajix
Oct 12 2016 22:13
@roemhildtg Nope
You could always implement some behavior that does that
ericcarino
@ericcarino
Oct 12 2016 22:45
For a can-define, is there a way to always force to use the getter when accessing it? Even if none of the observables in that getter has changed?