Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/adibro500/ngx-adibro-reusable-autocomplete-lib


https://github.com/adibro500/ngx-adibro-reusable-autocomplete-lib

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

README

        

# ngx-adibro-autocomplete for Angular 7+

This is an angular component for autocomplete.

# For demos please visit

[demos](abhorrent-measure.surge.sh)

## Installation

```
npm install --save ngx-adibro-autocomplete
```

## Usage

### Inside app.module file import the module:

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

import { FormsModule } from '@angular/forms';
import { NgxAdibroAutocompleteModule } from 'ngx-adibro-autocomplete';

@NgModule({
declarations: [
...
],
imports: [
... ,
BrowserModule,
FormsModule,
NgxAdibroAutocompleteModule,
...
],
providers: [ ... ],
bootstrap: [...]
})
export class AppModule { }

```

### In your HTML file you can do:

```

```
### In your TS file:
```
myval: any;
public items = [
"Eve",
"Charles",
"Tracey",
...
]

changedVal($event){
console.log($event);

}
```

### We support:
1. items must be an array of strings
2. currently only strings are supported

## That's it

Have fun !!!