Powerfield is a npm package regrouping useful form fields directive for Angular projects. All directives are compatible with Angular Material. The Powerfield aim is to deliver modularity and performance in your Angular projects. Powerfield helps you with common needed Angular input directives.
To install the Powerfield package in your project using npm, open a terminal/console window and enter the following command:
npm install powerfield
To import the installed package to your module, open your module file and edit it as follow:
import { PowerfieldModule } from 'powerfield';
@NgModule({
...
imports: [
...
PowerfieldModule,
],
...
})
...
You can find the full Powerfield documentation here. This documentation contains a description of every Powerfield directives and related examples.
You can use every provided directives directly in your component templates. Here is an example of the use of the powAutoWidth directive:
<input type="text" powAutoWidth [powExtraWidth]="20" />
Powerfield is MIT licensed.