@ -7,17 +7,15 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* To create a Pipe, you must implement this interface.
|
||||
*
|
||||
* An interface that is implemented by pipes in order to perform a transformation.
|
||||
* Angular invokes the `transform` method with the value of a binding
|
||||
* as the first argument, and any parameters as the second argument in list form.
|
||||
*
|
||||
* @usageNotes
|
||||
* ### Example
|
||||
*
|
||||
* The `RepeatPipe` below repeats the value as many times as indicated by the first argument:
|
||||
* In the following example, `RepeatPipe` repeats a given value a given number of times.
|
||||
*
|
||||
* ```
|
||||
* ```ts
|
||||
* import {Pipe, PipeTransform} from '@angular/core';
|
||||
*
|
||||
* @Pipe({name: 'repeat'})
|
||||
|
Reference in New Issue
Block a user