當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。