Difference between Preact and Angular (original) (raw)

Last Updated : 07 Aug, 2020

Angular: Angular is the frontend framework that was developed by Google. It does help in the fast development of the applications and is based on the MVC framework. Angular is completely written in Typescript.

Features:

Preact: While Preact is the library that is used to develop the frontend or the user Interface. Preact is lightweight and 3kB in size, it is the alternative for reactJS having the same ES6 API.

Features:

Difference between Preact and Angular:

Sr.No. Preact Angular
1. It is a lightweight alternativeReactJS. It is a complex framework for developing frontend applications.
2. It is written in JavaScript. It is completely based on Typescript single-page.
3. It is small in size of about 3kB and still offer the same React API for development purpose. While angular is a heavy MVC framework that is suitable for developing large applications.
4. It works with and updates the virtual DOM. It works with and updates the real DOM.
5. It is a Javascript library and lightweight alternative for ReactJS. It is the complex MVC framework used to develop single page applications.
6. It can be installed by npm install -g preact-cli It can be installed by npm install -g angular-cli
7. It's an architecture based on the Document Object Model. It is architecture is based on the Model view controller.
8. Effective memory usage Memory used is larger as compared to preact.