An open API service indexing awesome lists of open source software.

https://github.com/spirosikmd/angular2-elastic-input

Angular attribute directive that adjusts the width of a text input while typing ⌨️
https://github.com/spirosikmd/angular2-elastic-input

angular angular2 directive elastic-input

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# angular2-elastic-input

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

Based on [angular-elastic-input](https://github.com/jacek-pulit/angular-elastic-input).

[![Build Status][build-badge]][build]
[![version][version-badge]][package]
[![PRs Welcome][prs-badge]](http://makeapullrequest.com)
[![All Contributors][all-contributors-badge]](#contributors)
[![Greenkeeper badge][greenkeeper-badge]](https://greenkeeper.io/)

## Install

`npm install --save angular2-elastic-input`

## Example

```typescript
import {NgModule, Component} from '@angular/core';
import {ElasticInputModule} from 'angular2-elastic-input';

@Component({
template: `

`
})
class AppComponent { }

@NgModule({
imports: [ElasticInputModule.forRoot()],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule { }
```

Check the [docs](docs) for a complete example.

## Contributors

Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):

| [
Spyros Ioakeimidis](http://www.spyros.io)
💬 [💻](https://github.com/spirosikmd/angular2-focus/commits?author=spirosikmd) [⚠️](https://github.com/spirosikmd/angular2-focus/commits?author=spirosikmd) |
| :---: |

This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification.
Contributions of any kind welcome!

[version-badge]: https://img.shields.io/npm/v/angular2-elastic-input.svg?style=flat-square
[package]: https://www.npmjs.com/package/angular2-elastic-input
[prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
[build-badge]: https://img.shields.io/travis/spirosikmd/angular2-elastic-input.svg?style=flat-square
[build]: https://travis-ci.org/spirosikmd/angular2-elastic-input.svg
[greenkeeper-badge]: https://badges.greenkeeper.io/spirosikmd/angular2-elastic-input.svg
[all-contributors-badge]: https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square