Skip to content

Commit

Permalink
feat(ngx-control-value-accessor): expose the NgControl instance of th…
Browse files Browse the repository at this point in the history
…e host (#479)

Co-authored-by: Robby Rabbitman <[email protected]>
  • Loading branch information
RobbyRabbitman and Robby Rabbitman authored Oct 1, 2024
1 parent c193d5e commit a0de789
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,13 @@ export class NgxControlValueAccessor<T = any>
/** @ignore */
private readonly injector = inject(Injector);

/** @ignore */
private readonly ngControl = inject(NgControl, {
/**
* The `NgControl` instance on this host element. If present, this `NgxControlValueAccessor` instance will be its value accessor.
*
* @see {@link NgControl}
* @see {@link NgControl.valueAccessor}
*/
public readonly ngControl = inject(NgControl, {
self: true,
optional: true,
});
Expand Down

0 comments on commit a0de789

Please sign in to comment.