78 lines
1018 B
Plaintext
78 lines
1018 B
Plaintext
|
|
p.location-badge.
|
|
exported from <a href='../pipes'>angular2/pipes</a>
|
|
defined in <a href="https://github.com/angular/angular/tree/3a0410a/modules/angular2/src/change_detection/pipes/uppercase_pipe.ts#L2-L41">angular2/src/change_detection/pipes/uppercase_pipe.ts (line 2)</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)
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.l-sub-section
|
|
h3 onDestroy
|
|
|
|
|
|
pre.prettyprint
|
|
code.
|
|
onDestroy()
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.l-sub-section
|
|
h3 transform
|
|
|
|
|
|
pre.prettyprint
|
|
code.
|
|
transform(value: string)
|
|
|
|
:markdown
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|