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

Commit a51c309

Browse files
docs(typeahead): clarify subset of select's syntax used
Closes #715 Closes #506
1 parent 220e7b6 commit a51c309

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/typeahead/docs/readme.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
Typeahead is a AngularJS version of [Twitter Bootstrap typeahead plugin](http://twitter.github.com/bootstrap/javascript.html#typeahead)
2-
1+
Typeahead is a AngularJS version of [Twitter Bootstrap typeahead plugin](http://twitter.github.com/bootstrap/javascript.html#typeahead).
32
This directive can be used to quickly create elegant typeheads with any form text input.
43

5-
It is very well integrated into the AngularJS as:
4+
It is very well integrated into the AngularJS as it uses subset of the
5+
[select directive](http://docs.angularjs.org/api/ng.directive:select) syntax, which is very flexible. Supported expressions:
6+
7+
* _label_ for _value_ in _sourceArray_
8+
* _select_ as _label_ for _value_ in _sourceArray_
9+
10+
The `sourceArray` expression can use a special `$viewValue` variable that corresponds to a value entered inside input by a user.
611

7-
* it uses the same, flexible syntax as the [select directive](http://docs.angularjs.org/api/ng.directive:select)
8-
* works with promises and it means that you can retrieve matches using the `$http` service with minimal effort
12+
Also this directive works with promises and it means that you can retrieve matches using the `$http` service with minimal effort.

0 commit comments

Comments
 (0)