code: function queueViewHooks(def, tView, i) {
      if (def.afterViewInit) {
          (tView.viewHooks || (tView.viewHooks = [])).push(i, def.afterViewInit);
      }
      if (def.afterViewChecked) {
          (tView.viewHooks || (tView.viewHooks = [])).push(i, def.afterViewChecked);
          (tView.viewCheckHooks || (tView.viewCheckHooks = [])).push(i, def.afterViewChecked);
      }
  }
docs: Queues afterViewInit and afterViewChecked hooks on TView