Anthbs / ng-trim-value-accessor

Angular's (missing) trim accessor to automatically trim values of input fields

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TrimValueAccessor for Angular

Angular's missing trim input functionality (equivalent of AngularJS ng-trim)

Caveat: It's a drop-in solution, meaning it applies to all input fields as soon as this module is used.

Installation

To install this library, run:

$ npm install ng-trim-value-accessor --save

and then from your Angular AppModule:

import { NgModule } from '@angular/core';
import { TrimValueAccessorModule } from 'ng-trim-value-accessor';

@NgModule({
  imports: [
    TrimValueAccessorModule
  ]
})
export class AppModule { }

About

Angular's (missing) trim accessor to automatically trim values of input fields

License:MIT License


Languages

Language:TypeScript 100.0%