ng2-ui / auto-complete

Angular Auto Complete component and directive
https://ng2-ui.github.io/dist/#/auto-complete
MIT License
279 stars 122 forks source link

auto-complete

npm npm npm

IMPORTANT: HELP NEEDED

The project need your help, any help for fixing bugs and improvements are welcome! GitHub issues

Install

  1. install @ngui/auto-complete

    $ npm install @ngui/auto-complete --save
  2. add map and packages to your systemjs.config.js unless you are using webpack

    map['@ngui/auto-complete'] = 'node_modules/@ngui/auto-complete/dist/auto-complete.umd.js';
  3. import NguiAutoCompleteModule to your AppModule

    import { NguiAutoCompleteModule } from '@ngui/auto-complete';
    
    @NgModule({
      imports: [BrowserModule, FormsModule, NguiAutoCompleteModule],
      declarations: [AppComponent],
      providers: [HTTP_PROVIDERS],
      bootstrap: [ AppComponent ]
    })
    export class AppModule { }

Usage it in your code

    <input auto-complete [(ngModel)]="myData" [source]="mySource" />

For full example, please check test directory to see the example of;

Demo

You can look at different show cases for it here as Component or Directive.

attributes

All options are optional except ngModel and source

Below are plunks for different scenarios:

Template Driven Forms

Reactive Forms

Material Design

Observable Source

List Formatter Example

Contributors are welcomed

This module is only improved and maintained by contributors like you;

As a contributor, it's NOT required to be skilled in Javascript nor Angular. You can contribute to the following;

In result of your active contribution, you will be listed as a core contributor on https://ng2-ui.github.io, and a member of ng2-ui too.

If you are interested in becoming a contributor and/or a member of ng-ui, please send me email to allenhwkim AT gmail.com with your github id.

For Developers

To start

$ git clone https://github.com/ng2-ui/auto-complete.git
$ cd auto-complete
$ npm install
$ npm build-lib:watch

$ # On different instance

$ npm start

To publish

$ npm build-lib:prod
$ cd dist
$ npm publish

List of available npm tasks