smart-complete

为input和textarea提供提示补全功能的AngularJS指令

Usage no npm install needed!

<script type="module">
  import smartComplete from 'https://cdn.skypack.dev/smart-complete';
</script>

README

Smart-complete -- 为input和textarea提供提示补全功能的AngularJS指令

Build Status devDependency Status Coverage Status

依赖

安装

npm install smart-complete

使用

angular.module('app', ['smart-complete']);
<input type="text" smart-complete="searchFunc"
  sc-width="'240px'" sc-height="'200px'" sc-sep="','"
  sc-item-click-cb="itemClickCb" sc-enter-cb="enterCb">

Demo: http://codepen.io/zskymn/pen/dMbNNb

开发

$ npm installl
$ gulp