Skip to content

Angular Ivy vs View Engine

Published: at 08:00 AM

ivy vs view engine

view engine from Angular 2.

ivy introduced in Angular 9.

https://designtechworld.medium.com/ivy-compiler-vs-view-engine-b607c3897d3d

Overview of View Engine

View Engine is the original rendering engine in Angular that has been used since Angular 2. It is responsible for transforming Angular component templates into JavaScript code that can be executed by the browser. The main job of the View Engine is to compile components and templates into a set of instructions that can be understood and rendered by the browser. View Engine also handles the dependency injection system and provides services like change detection, directives, and pipes.

Overview of Ivy

Ivy is the latest rendering engine in Angular that was introduced with Angular 9. It is a complete overhaul of the View Engine, with the aim of making Angular faster, smaller, and more flexible. The main focus of Ivy is on better performance and smaller bundle sizes. Ivy achieves this by generating more efficient code that eliminates unnecessary elements from the compiled templates.

Difference between View Engine and Ivy

Conclusion

In conclusion, both View Engine and Ivy are rendering engines in Angular that transform templates into JavaScript code that can be executed by the browser. View Engine is the original rendering engine, while Ivy is the latest rendering engine that focuses on better performance, smaller bundle sizes, and easier debugging. Ivy provides several advantages over View Engine, including better performance, tree shaking, and better tooling support. However, it also requires more memory and processing power.