79 lines
1.0 KiB
Plaintext
79 lines
1.0 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.32/modules/angular2/src/change_detection/pipes/uppercase_pipe.ts#L3-L40">angular2/src/change_detection/pipes/uppercase_pipe.ts (line 3)</a>
|
||
|
|
||
|
:markdown
|
||
|
Implements uppercase transforms to text.
|
||
|
|
||
|
# Example
|
||
|
|
||
|
In this example we transform the user text uppercase.
|
||
|
|
||
|
```
|
||
|
@Component({
|
||
|
selector: "username-cmp"
|
||
|
})
|
||
|
@View({
|
||
|
template: "Username: {{ user | uppercase }}"
|
||
|
})
|
||
|
class Username {
|
||
|
user:string;
|
||
|
}
|
||
|
|
||
|
```
|
||
|
|
||
|
|
||
|
.l-main-section
|
||
|
h2 Members
|
||
|
.l-sub-section
|
||
|
h3 supports
|
||
|
|
||
|
|
||
|
pre.prettyprint
|
||
|
code.
|
||
|
supports(str: any)
|
||
|
|
||
|
:markdown
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
.l-sub-section
|
||
|
h3 onDestroy
|
||
|
|
||
|
|
||
|
pre.prettyprint
|
||
|
code.
|
||
|
onDestroy()
|
||
|
|
||
|
:markdown
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
.l-sub-section
|
||
|
h3 transform
|
||
|
|
||
|
|
||
|
pre.prettyprint
|
||
|
code.
|
||
|
transform(value: string, args?: List<any>)
|
||
|
|
||
|
:markdown
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|