2

Is there a way to change an Angular 2 application that is created and served via Angular 2 CLI from the default html file to a php file? Is there a setting someplace that determines with the ng serve command serves up as the default index file?

MBU

1 Answer 1

2

It seems that angular cli does not allow you to set default file name to something different than index.html.

Even if the change to index.php would be possible, you will not accomplish what you want. To run php files, you need PHP interpreter. There is no such thing in ng serve, as it's main purpose is to serve static HTML files.

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.