RootRenderer

RootRenderer

Experimental Class

Class Overview

class RootRenderer {
  renderComponent(componentType: RenderComponentType) : Renderer
}

Class Description

Injectable service that provides a low-level interface for modifying the UI.

Use this service to bypass Angular's templating and make custom UI changes that can't be expressed declaratively. For example if you need to set a property or an attribute whose name is not statically known, use setElementProperty or setElementAttribute respectively.

If you are implementing a custom renderer, you must implement this interface.

The default Renderer implementation is DomRenderer. Also available is WebWorkerRenderer.

Class Details

renderComponent(componentType: RenderComponentType) : Renderer

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

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部