Skip to content

Commit b399c6d

Browse files
committed
fix(fe): add properties getter to component for improved data access (#62)
1 parent 4f482d2 commit b399c6d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

fe/packages/service/src/instance/component/component.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ export class Component {
6161
this.data[key] = this.opts.properties[key]
6262
}
6363
}
64+
Object.defineProperty(this, 'properties', {
65+
get() {
66+
return this.data
67+
},
68+
enumerable: true,
69+
configurable: false
70+
})
6471
}
6572

6673
this.#initLifecycle()

0 commit comments

Comments
 (0)