code: function leaveView(newView, creationOnly) {
      if (!creationOnly) {
          if (!checkNoChangesMode) {
              executeHooks(directives, tView.viewHooks, tView.viewCheckHooks, creationMode);
          }
          // Views are clean and in update mode after being checked, so these bits are cleared
          viewData[FLAGS] &= ~(1 /* CreationMode */ | 4 /* Dirty */);
      }
      viewData[FLAGS] |= 16 /* RunInit */;
      viewData[BINDING_INDEX] = -1;
      enterView(newView, null);
  }
docs: Used in lieu of enterView to make it clear when we are exiting a child view. This makes
  the direction of traversal (up or down the view tree) a bit clearer.
  
  @param newView New state to become active
  @param creationOnly An optional boolean to indicate that the view was processed in creation mode
  only, i.e. the first update will be done later. Only possible for dynamically created views.