This repository has been archived by the owner on May 29, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(typeahead): clarify subset of select's syntax used
- Loading branch information
1 parent
220e7b6
commit a51c309
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
Typeahead is a AngularJS version of [Twitter Bootstrap typeahead plugin](http://twitter.github.com/bootstrap/javascript.html#typeahead) | ||
|
||
Typeahead is a AngularJS version of [Twitter Bootstrap typeahead plugin](http://twitter.github.com/bootstrap/javascript.html#typeahead). | ||
This directive can be used to quickly create elegant typeheads with any form text input. | ||
|
||
It is very well integrated into the AngularJS as: | ||
It is very well integrated into the AngularJS as it uses subset of the | ||
[select directive](http://docs.angularjs.org/api/ng.directive:select) syntax, which is very flexible. Supported expressions: | ||
|
||
* _label_ for _value_ in _sourceArray_ | ||
* _select_ as _label_ for _value_ in _sourceArray_ | ||
|
||
The `sourceArray` expression can use a special `$viewValue` variable that corresponds to a value entered inside input by a user. | ||
|
||
* it uses the same, flexible syntax as the [select directive](http://docs.angularjs.org/api/ng.directive:select) | ||
* works with promises and it means that you can retrieve matches using the `$http` service with minimal effort | ||
Also this directive works with promises and it means that you can retrieve matches using the `$http` service with minimal effort. |