a-autocomplete
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-beta-9 • Public • Published

A-Autocomplete

Angular lib wrapper for JQuery ui Autocomplete

Install

npm install --save a-autocomplete

Usage

  1. Import the module in your module.
  import {AAutocompleteModule} from 'a-autocomplete';


  @NgModule({
    ...
    imports:[AAutocompleteModule]
    ...
  })
  1. Include the js and the css in your .angular-cli.json
  ...
  "styles": [
    "../node_modules/jquery-ui-dist/jquery-ui.min.css"
  ],
  "scripts": [
    "../node_modules/jquery/dist/jquery.min.js",
    "../node_modules/jquery-ui-dist/jquery-ui.min.js"
  ]
  ...
  1. Use it in the component
  <input [options]="{source: ['hola', 'mundo']}" a-autocomplete>

You can set any autocomplete option, that jquery-ui autocomplete in [Autocomplete Docs] (http://api.jqueryui.com/autocomplete/)

Readme

Keywords

none

Package Sidebar

Install

npm i a-autocomplete

Weekly Downloads

1

Version

0.0.1-beta-9

License

MIT

Last publish

Collaborators

  • oscarpr28