Binding - Computed Properties
- Sometimes it is desirable to return a dynamically computed value when accessing a property, or you may want to reflect the status of an internal variable without requiring the use of explicit method calls. - In JavaScript, this can be accomplished with the use of a getter. - Here's an example Person class that exposes a fullName property that computes it's value using the firstName and lastName properties. export class Person { firstName = 'Pradnya'; lastName = 'Kulkarni Telang'; get fullName() { return `${this.firstName} ${this.lastName}`; } } - The binding system will examine the property's descriptor , determine that the value of the prope...