2016-03-24 15:30:26 -04:00
|
|
|
// #docregion
|
|
|
|
// #docregion depends-on-angular
|
2016-04-27 14:28:22 -04:00
|
|
|
import {Pipe, PipeTransform} from '@angular/core';
|
2016-03-24 15:30:26 -04:00
|
|
|
// #enddocregion depends-on-angular
|
|
|
|
|
|
|
|
@Pipe({ name: 'my-uppercase' })
|
|
|
|
export class MyUppercasePipe implements PipeTransform {
|
|
|
|
// #docregion uppercase
|
|
|
|
transform(value: string) {
|
|
|
|
return value.toUpperCase();
|
|
|
|
}
|
|
|
|
// #enddocregion uppercase
|
|
|
|
}
|