当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript view.resolveInternalDomView函数代码示例

本文整理汇总了TypeScript中angular2/src/render/dom/view/view.resolveInternalDomView函数的典型用法代码示例。如果您正苦于以下问题:TypeScript resolveInternalDomView函数的具体用法?TypeScript resolveInternalDomView怎么用?TypeScript resolveInternalDomView使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了resolveInternalDomView函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: resolveInternalDomView

                  .then((componentRef) => {
                    var domView = resolveInternalDomView(componentRef.hostView.render);
                    // We need to do this here to ensure that we create Testability and
                    // it's ready on the window for users.
                    registry.registerApplication(domView.boundElements[0].element, testability);

                    return componentRef;
                  });
开发者ID:B-Thapa,项目名称:angular,代码行数:8,代码来源:application.ts

示例2: viewCreated

 viewCreated(view: AppView) {
   var viewId = _nextId++;
   MapWrapper.set(_allViewsById, viewId, view);
   MapWrapper.set(_allIdsByView, view, viewId);
   var renderView = resolveInternalDomView(view.render);
   for (var i = 0; i < renderView.boundElements.length; i++) {
     _setElementId(renderView.boundElements[i], [viewId, i]);
   }
 }
开发者ID:MiisterPatate,项目名称:planning,代码行数:9,代码来源:debug_element_view_listener.ts

示例3: domElement

 get domElement(): any {
   return resolveInternalDomView(this._parentView.render)
       .boundElements[this._boundElementIndex]
       .element;
 }
开发者ID:B-Thapa,项目名称:angular,代码行数:5,代码来源:debug_element.ts

示例4: viewRootNodes

export function viewRootNodes(view): List</*node*/ any> {
  return resolveInternalDomView(view.render).rootNodes;
}
开发者ID:Bogatinov,项目名称:angular,代码行数:3,代码来源:utils.ts

示例5: domElement

 /**
  * Exposes the underlying DOM element.
  * (DEPRECATED way of accessing the DOM, replacement coming)
  */
 // TODO(tbosch): Here we expose the real DOM element.
 // We need a more general way to read/write to the DOM element
 // via a proper abstraction in the render layer
 get domElement() {
   return resolveInternalDomView(this.parentView.render).boundElements[this.boundElementIndex];
 }
开发者ID:188799958,项目名称:angular,代码行数:10,代码来源:element_ref.ts


注:本文中的angular2/src/render/dom/view/view.resolveInternalDomView函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。