fix(aio): mark the 'titlecase' pipe as pure (#22959)

PR Close #22959
This commit is contained in:
Victor Berchet 2018-03-23 09:57:05 -07:00 committed by Matias Niemelä
parent 6f0191744c
commit 4bd3a65764
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
// #docregion
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({name: 'titlecase', pure: false})
@Pipe({name: 'titlecase', pure: true})
/** Transform to Title Case: uppercase the first letter of the words in a string.*/
export class TitleCasePipe implements PipeTransform {
transform(input: string): string {