简体   繁体   English

Angular 6使用哪个渲染引擎-Renderer2或Ivy Renderer?

[英]Which Rendering Engine does Angular 6 use - Renderer2 or Ivy Renderer?

I'm getting confused about rendering engine that Angular 6 and Angular 7 are using. 我对Angular 6和Angular 7使用的渲染引擎感到困惑。 Since, Ivy renderer is not in completed state to date (March'19). 从那时起,Ivy渲染器至今尚未处于完成状态(19年3月)。 But Angular team says that they have exposed some Ivy renderer APIs in Angular 6. 但是Angular团队说他们已经在Angular 6中公开了一些Ivy渲染器API。

Please someone help me out to clarify about the rendering engines used by Angular 6 and Angular 7. 请有人帮我澄清一下Angular 6和Angular 7使用的渲染引擎。

By default angular 6 and 7 still use the old renderer (Renderer2) But the beta version of Ivy can be enabled 默认情况下,角度6和7仍使用旧的渲染器(Renderer2),但可以启用beta版本的Ivy

On Angular 8 you can opt-in in Ivy Preview 在Angular 8上,您可以选择加入Ivy Preview

but to quote the last link regarding angular 8 但引用有关角度8的最后一个链接

Ivy will not be ready for all use cases. Ivy不会为所有用例做好准备。 Some features such as i18n or Angular Universal will likely not have full compatibility yet in the preview. 某些功能(例如i18n或Angular Universal)可能在预览中尚未完全兼容。 Our language service will not be functional during the Ivy preview. 在常春藤预览期间,我们的语言服务将无法使用。

From Angular v4 <= v7 it uses the ViewEngine . 从Angular v4 <= v7开始,它使用ViewEngine And also the Renderer2 method for rendering. 还有用于渲染的Renderer2方法。

In angular 8 ivy will be optional and in angular 9 it will be default. 在角度8中, ivy是可选的,在角度9中, ivy是默认的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM