Renderer2

Experimental

Class

Class Overview

class Renderer2 {
data : {[key: string]: any}
destroy() : void
createElement(name: string, namespace?: string) : any
createComment(value: string) : any
createText(value: string) : any
destroyNode : (node: any) => void |
appendChild(parent: any, newChild: any) : void
insertBefore(parent: any, newChild: any, refChild: any) : void
removeChild(parent: any, oldChild: any) : void
selectRootElement(selectorOrNode: string|any) : any
parentNode(node: any) : any
nextSibling(node: any) : any
setAttribute(el: any, name: string, value: string, namespace?: string) : void
removeAttribute(el: any, name: string, namespace?: string) : void
addClass(el: any, name: string) : void
removeClass(el: any, name: string) : void
setStyle(el: any, style: string, value: any, flags?: RendererStyleFlags2) : void
removeStyle(el: any, style: string, flags?: RendererStyleFlags2) : void
setProperty(el: any, name: string, value: any) : void
setValue(node: any, value: string) : void
listen(target: 'window'|'document'|'body'|any, eventName: string, callback: (event: any) => boolean | void) : () => void

}

Class Description

Class Details

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