Introducing aurelia-computed

added by JavaScript Kicks
5/6/2015 1:51:00 PM

418 Views

aurelia-computed is a plugin for the Aurelia platform that improves the efficiency of data-binding computed properties. Binding to computed properties (properties with getter functions) typically requires dirty-checking. This plugin uses Aurelia's javascript parser to parse the body of the property's getter function and check the resulting abstract syntax tree (AST) for "observability". If the getter function is observable, a specialized observer is returned to Aurelia's pluggable binding system. The observer publishes change events when properties accessed by the getter function change.


0 comments