All Projects → anein → angular2-trim-directive

anein / angular2-trim-directive

Licence: MIT license
the directive trims whitespaces from the end of an input text value.

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to angular2-trim-directive

angular-base-apps
UI library for angular JS apps
Stars: ✭ 62 (+37.78%)
Mutual labels:  angularjs
js-sdk
JavaScript frontend SDK for ConfigCat. ConfigCat is a hosted feature flag service: https://configcat.com. Manage feature toggles across frontend, backend, mobile, desktop apps. Alternative to LaunchDarkly. Management app + feature flag SDKs.
Stars: ✭ 21 (-53.33%)
Mutual labels:  angularjs
angular-downloader
Angular Downloader is an angularjs directive that enables you to manage browser download - https://720kb.github.io/angular-downloader
Stars: ✭ 16 (-64.44%)
Mutual labels:  angularjs
node-postgres
This application demonstrates database operations using PostgreSQL as a database, Heroku as platform, Node.js as language and Angularjs as javascript based MVC.
Stars: ✭ 18 (-60%)
Mutual labels:  angularjs
angular-admin-panel
An Angular Admin boilerplate to quickly scaffold any large scale enterprise application.
Stars: ✭ 18 (-60%)
Mutual labels:  angularjs
front-end-notes
前端课程学习笔记汇总
Stars: ✭ 57 (+26.67%)
Mutual labels:  angularjs
PulseTile-AngularJS
Leading edge modular UI framework for healthcare. Based on AngularJS. See documentation at http://docs.pulsetile.com/ See plugins at https://github.com/PulseTile-Plugins ##
Stars: ✭ 19 (-57.78%)
Mutual labels:  angularjs
popmovies-web
Starter project using nodejs expressjs and angular 2
Stars: ✭ 17 (-62.22%)
Mutual labels:  angularjs
micro-service-practice
OpenStack+Docker+RestAPI+OAuth/HMAC+RabbitMQ/ZMQ+OpenResty/HAProxy/Nginx/APIGateway+Bootstrap/AngularJS+Ansible+K8S/Mesos/Marathon构建/探索微服务最佳实践。
Stars: ✭ 25 (-44.44%)
Mutual labels:  angularjs
smartcitizen-web
The Smart Citizen Kit platform
Stars: ✭ 13 (-71.11%)
Mutual labels:  angularjs
VTMsite
Vampire: The Masquerade character creator page made with Angular
Stars: ✭ 36 (-20%)
Mutual labels:  angularjs
GiantShaftEnterprises
Incremental idle game about building businesses and shaft mining asteroids....and maybe conquering the galaxy along the way.
Stars: ✭ 41 (-8.89%)
Mutual labels:  angularjs
teammanager
Small team manager written in MEAN stack
Stars: ✭ 30 (-33.33%)
Mutual labels:  angularjs
componentity
Thousands of components ready to be copy-pasted!
Stars: ✭ 15 (-66.67%)
Mutual labels:  angularjs
String.prototype.trim
ES5 spec-compliant shim for String.prototype.trim
Stars: ✭ 13 (-71.11%)
Mutual labels:  trim
Hacktoberfest2021-for-everyone
This repository is for everyone who wants to participate in Hacktoberfest 2022. Anyone can contribute/add quality code or projects for your Swags (T- Shirt), must be relevant that can add some value to this repository.
Stars: ✭ 178 (+295.56%)
Mutual labels:  angularjs
angular6-httpclient-example
Angular 6 HttpClient: Consume RESTful API Example
Stars: ✭ 38 (-15.56%)
Mutual labels:  angularjs
brush
An amazing scaffolding for developing database-driven websites, applications and APIs. Built on Laravel Lumen Framework, MySQL and Angular.
Stars: ✭ 23 (-48.89%)
Mutual labels:  angularjs
trim-canvas
A tiny (< 100 LoC) library for trimming whitespace from a canvas element with no dependencies
Stars: ✭ 48 (+6.67%)
Mutual labels:  trim
laravel5Angular4
Laravel 5.4 & Angular 4.3.4
Stars: ✭ 37 (-17.78%)
Mutual labels:  angularjs

ng2-trim-directive

Build Status npm

The directive trims whitespaces from the end of an input text value.

Demo

Play with the directive here https://anein.github.io/angular2-trim-directive/.

Usage

  1. Install ng2-trim-directive.
  npm i ng2-trim-directive

or using Yarn

  yarn add ng2-trim-directive
  1. Import InputTrimModule to your Angular module.
import { InputTrimModule } from 'ng2-trim-directive';
@NgModule({
  imports: [
    ...
    InputTrimModule,
    ...
  ],
  ...
  1. Add the "trim" attribute to a text input or textarea element.
   <input type="text" trim />
   <textarea ... trim ></textarea>

or with an option: trim value only on the blur event.

   <input type="text" trim="blur" />
   <textarea ... trim="blur" ></textarea>

note: if you use the directive with <textarea> without setting the blur event, it will behave like the text input element.


Good luck.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].