aboutsummaryrefslogtreecommitdiffstats
path: root/src/formatters.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/formatters.js')
-rw-r--r--src/formatters.js2
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);