angular-growing-input

AngularJS directive that allow textarea to grow or expand while user is typing.


Keywords
angular, growinginput, expand, textarea, grow, growing, input
License
MIT
Install
bower install angular-growing-input

Documentation

Growing Input AngularJS directive

This directive allows textarea to grow to limited height. jQuery FREE. Requires only AngularJS.

This directive was made with incarnation of @bgrins ExpandingTextareas jQuery plugin.

How to use.

Install using bower

bower install angular-growing-input

Include to your index.html

<script src="components/angular/angular.js"></script>
<script src="components/angular-growing-input/angular-grow.js"></script>

Add dependency to your application

 app.module("YourAPP", ["growingInput"]);

Apply directive to <textarea>

<textarea grow="100" ng-model="t"></textarea>

This tells that textarea will grow up to 100px height.