diff --git a/modules/@angular/compiler/src/view_compiler/view_builder.ts b/modules/@angular/compiler/src/view_compiler/view_builder.ts
index a66434eec4..dad3f07c66 100644
--- a/modules/@angular/compiler/src/view_compiler/view_builder.ts
+++ b/modules/@angular/compiler/src/view_compiler/view_builder.ts
@@ -576,7 +576,8 @@ function generateDetectChangesMethod(view: CompileView): o.Statement[] {
}
stmts.push(...view.detectChangesRenderPropertiesMethod.finish());
view.viewChildren.forEach((viewChild) => {
- stmts.push(viewChild.callMethod('internalDetectChanges', [DetectChangesVars.throwOnChange]).toStmt());
+ stmts.push(
+ viewChild.callMethod('internalDetectChanges', [DetectChangesVars.throwOnChange]).toStmt());
});
const afterViewStmts =
view.updateViewQueriesMethod.finish().concat(view.afterViewLifecycleCallbacksMethod.finish());
diff --git a/modules/@angular/core/test/linker/change_detection_integration_spec.ts b/modules/@angular/core/test/linker/change_detection_integration_spec.ts
index efcc7f0ab1..c54a1af499 100644
--- a/modules/@angular/core/test/linker/change_detection_integration_spec.ts
+++ b/modules/@angular/core/test/linker/change_detection_integration_spec.ts
@@ -1135,20 +1135,20 @@ export function main() {
}));
it('Detached view can be checked locally', fakeAsync(() => {
- const ctx = createCompFixture('');
- const cmp: CompWithRef = queryDirs(ctx.debugElement, CompWithRef)[0];
- cmp.value = 'hello';
- cmp.changeDetectorRef.detach();
- expect(renderLog.log).toEqual([]);
+ const ctx = createCompFixture('');
+ const cmp: CompWithRef = queryDirs(ctx.debugElement, CompWithRef)[0];
+ cmp.value = 'hello';
+ cmp.changeDetectorRef.detach();
+ expect(renderLog.log).toEqual([]);
- ctx.detectChanges();
+ ctx.detectChanges();
- expect(renderLog.log).toEqual([]);
+ expect(renderLog.log).toEqual([]);
- cmp.changeDetectorRef.detectChanges();
+ cmp.changeDetectorRef.detectChanges();
- expect(renderLog.log).toEqual(['{{hello}}']);
- }));
+ expect(renderLog.log).toEqual(['{{hello}}']);
+ }));
it('Reattaches', fakeAsync(() => {
@@ -1364,10 +1364,7 @@ class CompWithRef {
noop() {}
}
-@Component({
- selector: 'wrap-comp-with-ref',
- template: ''
-})
+@Component({selector: 'wrap-comp-with-ref', template: ''})
class WrapCompWithRef {
constructor(public changeDetectorRef: ChangeDetectorRef) {}
}