File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 73
73
*
74
74
* @param {String } name Name of the filter function to retrieve
75
75
* @return {Function } the filter function
76
- */
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
+ </file>
92
+ </example>
93
+ */
77
94
$FilterProvider . $inject = [ '$provide' ] ;
78
95
function $FilterProvider ( $provide ) {
79
96
var suffix = 'Filter' ;
You can’t perform that action at this time.
0 commit comments