+ 6

Why To use nodejs with angular

28th Mar 2018, 5:34 AM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
4 Answers
+ 4
compilation of typescript, need of a web server to host your app, angular uses many development libraries that rely on node to smooth things up, if in nodejs platform
28th Mar 2018, 6:19 AM
Morpheus
Morpheus - avatar
+ 4
Sami khan, here's why Angular ( not to be confused with Angularjs) uses typescript. it's a development framework, you can serve the angular app real time using Ng serve, but in production code you build a JavaScript version of the whole app by doing ng build so it requires compilation of typescript. you can use any other platform as well than nodejs , that's the beauty of angular5 with Microsofts typescript. for development purpose its better to serve the angular app at some different port , without worrying about the nodejs backend stuffs
28th Mar 2018, 6:13 AM
Morpheus
Morpheus - avatar
+ 2
that's what I actually know.. the problem is when I start an angular project.. I need to import all node modules in it.. and every time I create an new project I need to import all the modules.. why so!? and why nodejs modules.. angular of its own can serve on localhost server so what further benefits nodejs add.. if I just want to build a front end stuff..
28th Mar 2018, 5:52 AM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
+ 1
Because node.js is server side technology and angular is front end technology. So you can build whatever web application you want with using only javascript.
28th Mar 2018, 5:46 AM
Vladi Petrov
Vladi Petrov - avatar