Computed observables
A computed observable is a property that is created by dynamically generating the value depending on the other properties. This means several other observables contribute to generate the value of this computed observable. Hence, a change in any of the dependent observables is expected to cause the computed observable value to be updated and reflected in the view bindings.
From the preceding example, add another variable called orgFullName, which adds a suffix to the organizationName as Limited. The interesting part is, as and when you update the organizationName value based on the program (for example, to Oracle in our case), you can observe that the orgFullName value gets updated as well (to Oracle Limited in our case). ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access