AngularJs or NodeJs ? What is the Major difference ? Which type is a better choice ?

NodeJs and AngularJS both are created to develop web applications using JavaScript, both adhere to the syntax of JavaScript however they are quite distinct in their architecture and functioning.

AngularJS is an MVC framework ( client side )

AngularJS is a client-side JavaScript MVC framework to build a dynamic web application.
It enables you to use HTML as your template language as well as lets you extend HTML’s syntax to express your application’s components evidently and succinctly . AngularJS’s data binding and dependency injection eliminate much of the code you would otherwise have to write. And it all happens within the web browser, rendering it an ideal partner with any server technology. AngularJS was initially started as a project in Google, but these days it is an open source framework .

NodeJs is a platform and runtime environment ( server side )

NodeJs is an open source, cross-platform runtime environment for developing server-side and networking programs built on Google Chrome’s JavaScript Engine ( V8 Engine ). NodeJs applications are written in JavaScript, and can be run within the NodeJs runtime on OS X, Microsoft Windows, and Linux.
NodeJs also offers a rich library of numerous JavaScript modules which simplifies the continuing development of web applications using NodeJs to an excellent extent. NodeJs uses an event-driven, non-blocking I/O model which makes it lightweight and efficient, ideal for data-intensive real-time applications that run across distributed devices.

It had been a brief difference between angularJs and NodeJs, as you examine, here in the above article, I have used “javascript” most of the time but not jQuery. So, are they typical? or Can’t we apply jQuery rather than javascript ?

Let me tell you a quick understanding of jQuery too.

jQuery is a library ( client side )

jQuery is a rapid, small, light in weight, “write less , do more” , and feature-rich JavaScript library.
It makes things like HTML document traversal together with manipulation, event handling, animation, and Ajax much easier with an easy-to-use API that actually works across a multitude of browsers.

Library V Framework

The key distinction between a library and a framework is “Inversion of Control”. When you call a method from a library, you are in control. But with a framework, the control is inverted : the framework calls you .

Library

An accumulation of functions which are useful when writing web applications. Your code is in charge and it calls into the library whenever it sees match. E.g: jQuery.

Framework

A particular implementation of a web application, in which your code fills in the details. The framework is in charge, and it calls into your code when it requires something application-specific. E.g: AngularJS, Durandal, EmberJs, etc .

1 Comment / Tags : / , ,
SHARE THIS POSTShare on FacebookTweet about this on TwitterShare on Google+Share on LinkedInPin on Pinterest