Skip to content

This small directive removes white spaces from an input field.

Notifications You must be signed in to change notification settings

jeroenkroese/angular2-trim-directive

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

angular2-trim-directive

This small directive removes white spaces from an input field.

Usage

  1. Add the directive to the module 'delarations' section.
@NgModule( {
  ...
  declarations: [ ..., InputTrimDirective ],
  ...
} )
  1. Add the "trim" attribute to a text input element.
   <input type="text" trim />

Good luck.

About

This small directive removes white spaces from an input field.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%