doubts with the single page application of angular

Asked

Viewed 162 times

-1

am beginner with single page, and would like to know if I need a server to run my web page that I am creating with single page? if yes which the best server to use?

1 answer

0


Good evening Aderbal, depends, are you using angular 1 or 2? Angular 2 runs on a Node.js server at first and you have the option to "transpilate" the code to generate "pure" javascript and html. If you are using angular 1 you need a server yes, it can be an apache or even Node.js itself, the difference is that angular 2 "already comes" with the built-in server, is more practical. Angular 1 if you think about it is composed only of . html and . js soon 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 (which after transpilado turns into .html and .js) but this second one is much simpler and if you follow the cake recipe you have on the Angular 2 website you will already have a web server ready to use as soon as you create your project. I don’t know if I could be clear but I’ll leave a link here to help you: https://angular.io/docs/ts/latest/cli-quickstart.html

  • most of course impossible. I am using angular 1 so I think I will use apache. very sheltered Victor , was of great help...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.