Yes. Node.js required for Angular 2 or Angular apps.
We need to install Node.js to develop Angular Apps.
If you are familiar with Angular JS 1.x. All we need to do is to add Angular Js file in script tag.But this not the case for Angular.
Reasons why we need Node.js for Angular
- We need to use Node and NPM compile them into js file so that we can deploy them in production.
- Most of the Angular packages or libraries at GitHub repository (github.com/angular/angular) are distributed as different NPM packages. Node Package Manager is heavily dependent on Node.js.
- As explained in my previous article Angular set up in local Environment, Using Angular CLI module we can automate so many things in Angular 2 or Angular.
- If you are writing unit tests we need to install test libraries and runner though NPM and executed using Node.
Use Node and NPM not as production server but as tooling and building Angular apps.
If you are from Dotnet background, you might think that why I need to install Node as Visual studio comes with Typescript plugin, web server. Technically, it is correct.
But we have to do lot of manual work to configure Angular App and there no good Angular CLI plug in available for Visual studio.
I would recommend using Visual studio or Visual Studio Code as code editor.