Skip to content

Commit

Permalink
fix(angular): proxyInputs does not error when called multiple times (#…
Browse files Browse the repository at this point in the history
…398)

resolves #397
  • Loading branch information
liamdebeasi authored Oct 26, 2023
1 parent cddd8f8 commit e72d7cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/angular-output-target/angular-component-lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ export const proxyInputs = (Cmp: any, inputs: string[]) => {
set(val: any) {
this.z.runOutsideAngular(() => (this.el[item] = val));
},
/**
* In the event that proxyInputs is called
* multiple times re-defining these inputs
* will cause an error to be thrown. As a result
* we set configurable: true to indicate these
* properties can be changed.
*/
configurable: true,
});
});
};
Expand Down

0 comments on commit e72d7cf

Please sign in to comment.