anchor.diff:      count++;
     }
   }
  +
  +@Component(
  +  selector: 'load-notifier',
  +  directives: [DeferredChildComponent],
  +  template: r'''
  +    <my-deferred-view @deferred #ref1></my-deferred-view>
  +    <my-deferred-view @deferred #ref2></my-deferred-view>
  +  ''',
  +)
  +class LoadNotifierTest {
  +  @ViewChild('ref1')
  +  DeferredChildComponent child1;
  +
  +  @ViewChild('ref2')
  +  DeferredChildComponent child2;
  +
  +  @ViewChildren(DeferredChildComponent)
  +  List<DeferredChildComponent> children;
  +}
  
positive.code:   final ChangeDetectorRef cdRef;
  
    SimpleContainerTest(this.cdRef);
  
    Future waitForDeferred() async {
      // TODO(matanl): Add proper support to this instead of using a timer.
      await new Future.delayed(Duration.zero);
      // TODO(het): remove this once angular_test supports waiting for deferred
      // components
      // var view = (cdRef as ViewRefImpl).appView as AppView;
      // return Future.wait(view.deferredLoads);
    }
  }
  
  @Component(
    selector: 'nested-container',
    directives: const [DeferredChildComponent, NgIf],
    template: r'''
      <section *ngIf="show">
        <my-deferred-view @deferred></my-deferred-view>
  
negative.code:     });
      expect(fixture.text, contains('Events: 1'));
    });
  
    test('should be notified when a deferred component is loaded', () async {
      final fixture = await NgTestBed
          .forComponent<LoadNotifierTest>(
        ng.LoadNotifierTestNgFactory,
      )
          .create(beforeChangeDetection: expectAsync1((comp) {
        expect(comp.child1, isNull);
        expect(comp.child2, isNull);
        expect(comp.children, isNull);
      }));
      // We only test this in DDC so a new macro-task is sufficient.
      await new Future.delayed(Duration.zero);
      expect(fixture.assertOnlyInstance.child1, isNotNull);
      expect(fixture.assertOnlyInstance.child2, isNotNull);
      expect(fixture.assertOnlyInstance.children, [
        fixture.assertOnlyInstance.child1,
        fixture.assertOnlyInstance.child2,
      ]);
    });
  }
  
  @Component(
  