Credit to devdocs.io

angular 2.0_typescript

angular

Renderer

Experimental Class

Class Overview

class Renderer {
  selectRootElement(selectorOrNode: string|any, debugInfo?: RenderDebugInfo) : any
  createElement(parentElement: any, name: string, debugInfo?: RenderDebugInfo) : any
  createViewRoot(hostElement: any) : any
  createTemplateAnchor(parentElement: any, debugInfo?: RenderDebugInfo) : any
  createText(parentElement: any, value: string, debugInfo?: RenderDebugInfo) : any
  projectNodes(parentElement: any, nodes: any[]) : void
  attachViewAfter(node: any, viewRootNodes: any[]) : void
  detachView(viewRootNodes: any[]) : void
  destroyView(hostElement: any, viewAllNodes: any[]) : void
  listen(renderElement: any, name: string, callback: Function) : Function
  listenGlobal(target: string, name: string, callback: Function) : Function
  setElementProperty(renderElement: any, propertyName: string, propertyValue: any) : void
  setElementAttribute(renderElement: any, attributeName: string, attributeValue: string) : void
  setBindingDebugInfo(renderElement: any, propertyName: string, propertyValue: string) : void
  setElementClass(renderElement: any, className: string, isAdd: boolean) : void
  setElementStyle(renderElement: any, styleName: string, styleValue: string) : void
  invokeElementMethod(renderElement: any, methodName: string, args?: any[]) : void
  setText(renderNode: any, text: string) : void
  animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string) : AnimationPlayer
}

Class Description

Class Details

selectRootElement(selectorOrNode: string|any, debugInfo?: RenderDebugInfo) : any
createElement(parentElement: any, name: string, debugInfo?: RenderDebugInfo) : any
createViewRoot(hostElement: any) : any
createTemplateAnchor(parentElement: any, debugInfo?: RenderDebugInfo) : any
createText(parentElement: any, value: string, debugInfo?: RenderDebugInfo) : any
projectNodes(parentElement: any, nodes: any[]) : void
attachViewAfter(node: any, viewRootNodes: any[]) : void
detachView(viewRootNodes: any[]) : void
destroyView(hostElement: any, viewAllNodes: any[]) : void
listen(renderElement: any, name: string, callback: Function) : Function
listenGlobal(target: string, name: string, callback: Function) : Function
setElementProperty(renderElement: any, propertyName: string, propertyValue: any) : void
setElementAttribute(renderElement: any, attributeName: string, attributeValue: string) : void
setBindingDebugInfo(renderElement: any, propertyName: string, propertyValue: string) : void

Used only in debug mode to serialize property changes to dom nodes as attributes.

setElementClass(renderElement: any, className: string, isAdd: boolean) : void
setElementStyle(renderElement: any, styleName: string, styleValue: string) : void
invokeElementMethod(renderElement: any, methodName: string, args?: any[]) : void
setText(renderNode: any, text: string) : void
animate(element: any, startingStyles: AnimationStyles, keyframes: AnimationKeyframe[], duration: number, delay: number, easing: string) : AnimationPlayer

exported from @angular/core/index, defined in @angular/core/src/render/api.ts

© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/core/index/Renderer-class.html