Skip to content

Commit

Permalink
fix(angular): do not error when proxyInputs is called multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi committed Oct 26, 2023
1 parent 74d54f9 commit 60f2d8e
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 60f2d8e

Please sign in to comment.