ngDoCheck method

  1. @override
void ngDoCheck()
override

Implementation

@override
void ngDoCheck() {
  final insertedViewRef = _insertedViewRef;
  if (insertedViewRef == null) return;
  // Local variables are deliberately set every change detection cycle to
  // simplify the design. It's unlikely this is worse than conditionally
  // setting them based on whether they actually changed, since their values
  // are change detected again wherever they're bound.
  _context?.forEach(insertedViewRef.setLocal);
}