angular2-elastic-input
TypeScript icon, indicating that this package has built-in type declarations

1.4.2 • Public • Published

angular2-elastic-input

Angular attribute directive that adjusts the width of a text input while typing.

Based on angular-elastic-input.

Build Status version PRs Welcome All Contributors Greenkeeper badge

Install

npm install --save angular2-elastic-input

Example

import {NgModule, Component} from '@angular/core';
import {ElasticInputModule} from 'angular2-elastic-input';
 
@Component({
  template: `
    <input type="text" elastic-input>
  `
})
class AppComponent { }
 
@NgModule({
  imports: [ElasticInputModule.forRoot()],
  declarations: [AppComponent],
  bootstrap: [AppComponent]
})
export class AppModule { }

Check the docs for a complete example.

Contributors

Thanks goes to these wonderful people (emoji key):


Spyros Ioakeimidis

💬 💻 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

Package Sidebar

Install

npm i angular2-elastic-input

Weekly Downloads

33

Version

1.4.2

License

MIT

Unpacked Size

338 kB

Total Files

44

Last publish

Collaborators

  • spyros.io