diff options
| author | Misko Hevery | 2011-04-19 16:34:49 -0700 |
|---|---|---|
| committer | Misko Hevery | 2011-06-08 15:21:33 -0700 |
| commit | af285dd370aa1b6779bf67ac3bdc19da512aaac5 (patch) | |
| tree | 663140aa80b8ec312bdc0390f552d8c8f86a8dda /src/formatters.js | |
| parent | 89e001b18a4f6d18caea1e9a3d015639feb4f1ee (diff) | |
| download | angular.js-af285dd370aa1b6779bf67ac3bdc19da512aaac5.tar.bz2 | |
Added ng:options directive
Closes #301
Diffstat (limited to 'src/formatters.js')
| -rw-r--r-- | src/formatters.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/formatters.js b/src/formatters.js index 906db619..b484f26f 100644 --- a/src/formatters.js +++ b/src/formatters.js @@ -204,6 +204,7 @@ angularFormatter.trim = formatter( * @workInProgress * @ngdoc formatter * @name angular.formatter.index + * @deprecated * @description * Index formatter is meant to be used with `select` input widget. It is useful when one needs * to select from a set of objects. To create pull-down one can iterate over the array of object @@ -250,6 +251,7 @@ angularFormatter.trim = formatter( </doc:scenario> </doc:example> */ +//TODO: delete me since this is replaced by ng:options angularFormatter.index = formatter( function(object, array){ return '' + indexOf(array || [], object); |
