code: function _getOuterContainerOrSelf(node) {
      var /** @type {?} */ view = node.view;
      while (_isNgContainer(node.parent, view)) {
          node = node.parent;
      }
      return node;
  }
docs: Walks up the nodes while the direct parent is a container.
  
  Returns the outer container or the node itself when it is not a direct child of a container.
  
  \@internal
  @param {?} node
  @return {?}