aurelia / documentation

The documentation for Aurelia.
MIT License
105 stars 111 forks source link

doc(binding-engine): add basic doc for binding engine #437

Closed bigopon closed 5 years ago

bigopon commented 5 years ago

I've answered question about binding engines for a few times, so I think it would be best if we could have a section dedicated to it.

Would be nice if @baerrach could help with this too ❤️

cc @EisenbergEffect

Note: it's super crude 😬

EisenbergEffect commented 5 years ago

Nice contribution! Merged as a first draft. If @baerrach is interested, we welcome the feedback. I'll do a minimal edit pass before publishing either way. Thanks @bigopon !

baerrach commented 5 years ago

I sure am, just distracted at the moment. Will look at it.

baerrach commented 5 years ago

Seems a reasonable first cut.

One thing I've not grokked yet is how aurelia-store, and perhaps immer, work with subscriptions - especially arrays.

Property bindings need to not reassign the property but instead mutate it.

From my understanding aurelia-store, and immer, would create a new array and share the contents of the array.

To reduce my cognitive load I'd love one way to do things, which would be the immutable way.

Note that I am not yet at the stage of applying any of this stuff to real code yet, so I don't have that experience.