@s-libs/ng-core
    Preparing search index...

    Function provideValueAccessor

    • Use in the providers of a component that implements ControlValueAccessor to reduce some boilerplate.

      @Component({ providers: [provideValueAccessor(MyFormControl)] }
      class MyFormControl extends BaseFormControl {
      // ...
      }

      Parameters

      • type: Type<any>

      Returns Provider