code: function attachEmbeddedView(parentView, elementData, viewIndex, view) {
      var embeddedViews = elementData.viewContainer._embeddedViews;
      if (viewIndex === null || viewIndex === undefined) {
          viewIndex = embeddedViews.length;
      }
      view.viewContainerParent = parentView;
      addToArray(embeddedViews, viewIndex, view);
      attachProjectedView(elementData, view);
      Services.dirtyParentQueries(view);
      var prevView = viewIndex > 0 ? embeddedViews[viewIndex - 1] : null;
      renderAttachEmbeddedView(elementData, prevView, view);
  }
docs: @license
  Copyright Google Inc. All Rights Reserved.
  
  Use of this source code is governed by an MIT-style license that can be
  found in the LICENSE file at https://angular.io/license