68 lines
1.1 KiB
Plaintext
68 lines
1.1 KiB
Plaintext
|
|
p.location-badge.
|
|
exported from <a href='../pipes'>angular2/pipes</a>
|
|
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.34/modules/angular2/src/pipes/lowercase_pipe.ts#L8-L41">angular2/src/pipes/lowercase_pipe.ts (line 8)</a>
|
|
|
|
:markdown
|
|
Implements lowercase transforms to text.
|
|
|
|
# Example
|
|
|
|
In this example we transform the user text lowercase.
|
|
|
|
```
|
|
@Component({
|
|
selector: "username-cmp"
|
|
})
|
|
@View({
|
|
template: "Username: {{ user | lowercase }}"
|
|
})
|
|
class Username {
|
|
user:string;
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
.l-main-section
|
|
h2 Annotations
|
|
.l-sub-section
|
|
h3.annotation CONST
|
|
pre.prettyprint
|
|
code.
|
|
@CONST()
|
|
|
|
|
|
.l-sub-section
|
|
h3.annotation Pipe
|
|
pre.prettyprint
|
|
code.
|
|
@Pipe({name: 'lowercase'})
|
|
|
|
|
|
.l-sub-section
|
|
h3.annotation Injectable
|
|
pre.prettyprint
|
|
code.
|
|
@Injectable()
|
|
|
|
|
|
.l-main-section
|
|
h2 Members
|
|
.l-sub-section
|
|
h3 transform
|
|
|
|
|
|
pre.prettyprint
|
|
code.
|
|
transform(value: string, args?: List<any>)
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
|