1

i have hosted php application in godaddy,i dont know how to host angular2 application.And i have installed node server into my hosting server.What is the next process i have to do?

1 Answer 1

1

You should build project Angular 2 in production mode. enter image description here

After build, it will create dist folder. It's normal HTML, JS and other stuff relate.

Just copy into your PHP server folder and note config in index.html <base href='/'>

Sign up to request clarification or add additional context in comments.

2 Comments

I have a doubt with "note config in index.htm <base href='/'>" please explain in detail
You can refer base href part in this docs angular.io/guide/router . In case you config <your-server>/abc , your html tag should be <base href='/abc'>.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.