MVCoconut / coconut.data

Observable Data Layer.
The Unlicense
20 stars 8 forks source link

Add coconut-specific @:forward #31

Open gene-pavlovsky opened 6 years ago

gene-pavlovsky commented 6 years ago

I think coconut could benefit from it's own extended version of tink_lang's @:forward

Limitations of using @:forward now:

serjek commented 4 years ago

proposition to add a @:proxy meta or something like this to forward observability for given (or all) props for nested models.

current workaround is a bit cumbersome:

@:observable var nested:NestedModel; //can change over time so binding to `model.nested.observables.prop` will not work anymore  once it is changed
@:computed var prop:NestedProp = nested.prop;
...