QuickStart

Install

First, install the packages.

yarn add @pebula/utils @pebula/metap @pebula/nform @pebula/nform-material

For this demo we use the @pebula/nform-material UI package which uses material component for form controls.

NgModule setup

import { NgModule } from '@angular/core';
import { PblNformMaterialModule } from '@pebula/nform-material';

@NgModule({
  /* ... */
  imports: [
    PblNformMaterialModule.forRoot()
  ],
  /* ... */
})
export class QuickStartAppModule { }
}

This will define the application module with nForm ready for use, in this case using form controls from the angular material library.

Now we can starting defining models and use them to render forms, for a basic example see nForm Basics

Shlomi Assaf © 2019. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.

Version 2.0.0 using angular 14.2.8 and cdk 14.2.6 (hash: 7930787)