📅  最后修改于: 2020-12-24 10:11:52             🧑  作者: Mango
Node.js和AngularJS都是为了使用JavaScript构建Web应用程序而开发的,它们都遵循JavaScript的语法,但是它们的体系结构和工作方式却大不相同。
以下列出了它们之间的重大差异。
Index | Node.js | AngularJS |
---|---|---|
1) | Node.js is a cross-platform run-time environment and run-time system for applications written in JavaScript languages. it is like java runtime environment (JRE) for java, adobe flash player for ActionScript, common language runtime (CLR) for .net programs, or android runtime (art) for android apps. | AnglarJS is an open source web application development framework developed by Google. |
2) | You have to install Node.js on your computer system to use it further for creating web or chat applications. | You have to add the AngularJS file just like any other JavaScript file to use it in applications. It doesn?t need to be installed separately before using it in applications. |
3) | Node.js supports non-blocking input output I/O and follows an event driven architecture. It is used to create real-time applications such as instant messaging or chat apps. | AngularJS is completely written in JavaScript. It is mainly used to create single-page client side applications. |
4) | Node.js is a platform built on the top of Google’s V8 JavaScript engine. | AngularJS is an open source framework, follows the syntax of JavaScript and developed by Google. |
5) | Node.js is written in C, C++ and JavaScript languages. | AngularJS is written completely in JavaScript but it is different from other web application frameworks like jQuery. |
6) | Node.js has a lot number of frameworks such as Express.js, Sails.js, Partial.js etc. | AngularJS itself is a web application framework of JavaScript. |