libs/core-forms/src/lib/turnstile-component-plugin/turnstile-component-plugin.module.ts
Static forRoot |
forRoot()
|
import { ModuleWithProviders, NgModule } from '@angular/core';
import { CUSTOM_DYNAMIC_FORM_COMPONENT } from '@allianz/taly-core/dynamic-form';
@NgModule({
providers: [
{
provide: CUSTOM_DYNAMIC_FORM_COMPONENT,
multi: true,
useValue: {
load: () => import('./turnstile.component'),
componentName: 'TurnstileComponent'
}
}
]
})
export class TurnstileComponentPluginModule {
static forRoot(): ModuleWithProviders<TurnstileComponentPluginModule> {
return { ngModule: TurnstileComponentPluginModule };
}
}