We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb8f627 commit f9a5d48Copy full SHA for f9a5d48
src/ng/filter.js
@@ -73,7 +73,24 @@
73
*
74
* @param {String} name Name of the filter function to retrieve
75
* @return {Function} the filter function
76
- */
+ * @example
77
+ <example name="$filter" module="filterExample">
78
+ <file name="index.html">
79
+ <div ng-controller="MainCtrl">
80
+ <h3>{{ originalText }}</h3>
81
+ <h3>{{ filteredText }}</h3>
82
+ </div>
83
+ </file>
84
+
85
+ <file name="script.js">
86
+ angular.module('filterExample', [])
87
+ .controller('MainCtrl', function($scope, $filter) {
88
+ $scope.originalText = 'hello';
89
+ $scope.filteredText = $filter('uppercase')($scope.originalText);
90
+ });
91
92
+ </example>
93
+ */
94
$FilterProvider.$inject = ['$provide'];
95
function $FilterProvider($provide) {
96
var suffix = 'Filter';
0 commit comments