doubts with single page application of angular [closed]

-1

I'm a beginner with the single page, and I wonder if I need a server to run my webpage that I'm creating with single page? if so what is the best server to use?

    
asked by anonymous 08.04.2017 / 02:31

1 answer

0

Good evening Aderbal, it depends, are you using angular 1 or 2? Angle 2 runs on a node.js server at the beginning and you have the option of "transpiling" the code to generate "pure" javascript and html. If you are using angular 1 you need a server yes, it may be an apache or even the node.js itself, the difference is that angle 2 "already comes" with the server imbutido, it is more practical. The angular 1 if you think about it is only composed of .html and .js files so you need someone to make this files available to the web in the case of the web server. Angular 2 is also a set of .html and .ts files (which after transpilado turns to .html and .js) however this second is much simpler and if you follow the cake recipe you have in angular 2 site you already will have a web server ready to use as soon as you create your project. I do not know if I could be clear but I'll leave a link here to help you: link

    
08.04.2017 / 03:17