Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

feat(typeahead): change to appendTo #4797

Closed

Commits on Nov 2, 2015

  1. feat(typeahead): change to appendTo

    - Change signature to `appendTo`, which takes a value that evaluates to a DOM node for API consistency
    
    BREAKING CHANGE: Usage before
    ```html
    <div id="typeahead-container"></div>
    <input typeahead="state for state in states | filter: $viewValue | limitTo: 8" typeahead-append-to-element-id="typeahead-container">
    ```
    After
    ```html
    <div id="typeahead-container"></div>
    <input typeahead="state for state in states | filter: $viewValue | limitTo: 8" typeahead-append-to="typeaheadContainer">
    ```
    ```js
    $scope.typeaheadContainer = angular.element(document.querySelector('#typeaheadContainer'));
    ```
    wesleycho committed Nov 2, 2015
    Configuration menu
    Copy the full SHA
    759cabe View commit details
    Browse the repository at this point in the history