How to run an angular app on xampp server?

I am working with Angular 2 with php. Before starting PHP with Angular 2. I made Angular 2 with node.js on the localhost: 3000 server. Now with PHP, how can I configure my Angular 2 application with the xampp server so that my server code runs on localhost: 8080. Please help me with that.

+4
source share
2 answers

Here is my answer.

You can only write an Angular2 application using Angular2 packages without using node or mamp or xampp and host this application. Link

, angular 2 - cli   index.html, :

<base href="/">

<base href="./">

, :

ng build --prod

dist xmpp htdocs , :

: 8080//

+5

, - :

angular -cli server - - API ?

angular 2 CLI - , xampp.

0

Source: https://habr.com/ru/post/1679679/


All Articles