angular-fast-matcher-demo
Source on GitHub

You can search by title or author.

Attach the directive to an <input> element with the following attributes.

Required

Optional

Example

<div ng-controller="BooksController as ctrl">
    <input type="text"
        fast-matcher
        fast-matcher-source="books"
        fast-matcher-output="matchedBooks"
        fast-matcher-properties="author, title"
        fast-matcher-index-changed="ctrl.setCurrentBook(index)"
        fast-matcher-item-selected="ctrl.selectBook(item)" />

    <!--
        You can put this list anywhere on the page and style it however you want.
        In fact you can put it multiple places. Or nowhere. It also doesn't have to be
        a <ul> element. It can be anything.
    -->
    <ul>
        <li ng-repeat="book in matchedBooks" ng-class="{active: ctrl.isCurrentBook($index)}">
            <div class="title" ng-bind="book.title"></div>
            <div class="author" ng-bind="book.author"></div>
        </li>
    </ul>
</div>