AutoForms is a system of libraries designed to synchronize a data structure between parts of a web application based on ASP.NET 6 and Angular.
In order to get AutoForms for ASP.NET, you can grab the latest NuGet package or just run
Install-Package AutoForms
Register FormBuilderFactory and other dependencies.
public void ConfigureServices(IServiceCollection services)
{
services.AddAutoForms();
services.AddValidationProcessor();
}
Install @auto-forms/client using NPM.
npm install @auto-forms/client
Add the AutoFormsModule
to the AppModule
, so you'll be able to inject FormBuilderCllient.
import { AutoFormsModule } from '@auto-forms/client';
@NgModule({
declarations: [AppComponent],
imports: [AutoFormsModule.forRoot()],
bootstrap: [AppComponent]
})
export class AppModule {}
To start working with AutoForms, check out the getting started guide.