From 4bd3a6576471b39e3b66dd8536507cdeb163cbe5 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 23 Mar 2018 09:57:05 -0700 Subject: [PATCH] fix(aio): mark the 'titlecase' pipe as pure (#22959) PR Close #22959 --- aio/content/examples/testing/src/app/shared/title-case.pipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/examples/testing/src/app/shared/title-case.pipe.ts b/aio/content/examples/testing/src/app/shared/title-case.pipe.ts index df2567778d..8797f49932 100644 --- a/aio/content/examples/testing/src/app/shared/title-case.pipe.ts +++ b/aio/content/examples/testing/src/app/shared/title-case.pipe.ts @@ -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 {