angular-smarty -


BSD
跨平台
JavaScript

软件简介

angular-smarty 是一个基于 AngularJS 实现的自动完成的
UI 实现。

使用方法:

$(function() {
    angular.bootstrap(angular.element("body"), ["angular-smarty"]);
});

HTML

<body ng-controller="SmartyController">
    <div class="container-main">
        <h1>angular-smarty demo</h1>
        <div class="container-autocomplete">
            <input type="text" smarty-input select="setSelected(x)"
                index="selected" list-items="suggestions" close="suggestionPicked()"
                selection-made="selectionMade" ng-model="prefix"></input>
            <div smarty-suggestions-box></div>
            <input type="text" focus-me focus-when="{{selectionMade}}"></input>
        </div>
    </div>
</body>