Computed Properties
How to use computed properties in the object model
Overview
Types of Computed Properties
Read-Write Properties
const { BO, computed } = require ('@onehilltech/blueprint');
const Person = BO.extend ({
fullName: computed ({
set (value) {
[this.firstName, this.lastName] = value.split (' ');
}
get () {
return `${this.firstName} ${this.lastName}`;
}
});Read-Only Properties
Constant Properties
Enumerable Computed Properties
Configurable Computed Properties
Last updated