UpperCasePipe

export class UpperCasePipe

exported from angular2/common defined in angular2/src/common/pipes/uppercase_pipe.ts (line 3)

Implements uppercase transforms to text.

Example

@Component({ selector: 'lowerupper-example', template: `<div> <label>Name: </label><input #name (keyup)="change(name.value)" type="text"> <p>In lowercase: <pre>'{{value | lowercase}}'</pre></p> <p>In uppercase: <pre>'{{value | uppercase}}'</pre></p> </div>` }) export class LowerUpperPipeExample { value: string; change(value) { this.value = value; } }

Annotations

@Pipe({name: 'uppercase'})

@Injectable()


Members

transform(value: string, args?: any[]) : string

Not Yet Documented