fix(ivy): pipes are pure by default (#24750)

PR Close #24750
This commit is contained in:
cexbrayat
2018-07-04 01:13:54 +02:00
committed by Miško Hevery
parent fddd2af4fc
commit f62876bbcb
2 changed files with 26 additions and 1 deletions

View File

@ -50,7 +50,7 @@ export class PipeDecoratorHandler implements DecoratorHandler<R3PipeMetadata> {
}
this.scopeRegistry.registerPipe(clazz, pipeName);
let pure = false;
let pure = true;
if (pipe.has('pure')) {
const pureValue = staticallyResolve(pipe.get('pure') !, this.checker);
if (typeof pureValue !== 'boolean') {