code: function cleanUpView(viewOrContainer) {
      if (viewOrContainer[TVIEW]) {
          var view = viewOrContainer;
          removeListeners(view);
          executeOnDestroys(view);
          executePipeOnDestroys(view);
          // For component views only, the local renderer is destroyed as clean up time.
          if (view[TVIEW].id === -1 && isProceduralRenderer(view[RENDERER])) {
              ngDevMode && ngDevMode.rendererDestroy++;
              view[RENDERER].destroy();
          }
      }
  }
docs: Removes all listeners and call all onDestroys in a given view.
  
  @param view The LViewData to clean up