0.1.0 • Published 7 years ago

ng-elastic-input v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

ng-elastic-input

Installation

To install this library, run:

$ npm install ng-elastic-input --save

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { ElasticInputModule } from 'ng-elastic-input';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify your library as an import
    ElasticInputModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once ElasticInputModule is imported, you can use its directive in your Angular application:

<input type="text" elastic>

You can pass the following properties to the directive:

<input type="text" elastic [minWidth]="100" [maxWidth]="300">

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

Authors

  • Felipe Céspedes - felipecespedespisso@gmail.com - Viwell

License

This project is licensed under the MIT License - see the LICENSE file for details