We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a0cfd5 commit c63c5acCopy full SHA for c63c5ac
packages/elements/src/create-custom-element.ts
@@ -237,10 +237,11 @@ export function createCustomElement<P>(
237
}
238
239
// Add getters and setters to the prototype for each property input.
240
- inputs.forEach(({propName, transform}) => {
+ inputs.forEach(({propName, transform, isSignal}) => {
241
Object.defineProperty(NgElementImpl.prototype, propName, {
242
get(): any {
243
- return this.ngElementStrategy.getInputValue(propName);
+ const inputValue = this.ngElementStrategy.getInputValue(propName);
244
+ return isSignal ? inputValue() : inputValue;
245
},
246
set(newValue: any): void {
247
this.ngElementStrategy.setInputValue(propName, newValue, transform);
0 commit comments