mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-01 19:54:45 +00:00
hide example for angular.filter
This commit is contained in:
parent
a8efd43d25
commit
dfa8baf59a
1 changed files with 7 additions and 3 deletions
|
|
@ -142,11 +142,15 @@ var _undefined = undefined,
|
||||||
* * `$element` — The DOM element containing the binding. This allows the filter to manipulate
|
* * `$element` — The DOM element containing the binding. This allows the filter to manipulate
|
||||||
* the DOM in addition to transforming the input.
|
* the DOM in addition to transforming the input.
|
||||||
*
|
*
|
||||||
* The following example filter reverses a text string. In addition, it conditionally makes the
|
|
||||||
* text upper-case (to demonstrate optional arguments) and assigns color (to demonstrate DOM
|
|
||||||
* modification).
|
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
|
* //TODO this example current doesn't show up anywhere because the overview template doesn't
|
||||||
|
* // render it.
|
||||||
|
*
|
||||||
|
* The following example filter reverses a text string. In addition, it conditionally makes the
|
||||||
|
* text upper-case (to demonstrate optional arguments) and assigns color (to demonstrate DOM
|
||||||
|
* modification).
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
angular.filter.reverse = function(input, uppercase, color) {
|
angular.filter.reverse = function(input, uppercase, color) {
|
||||||
var out = "";
|
var out = "";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue