You can write Angular2 app just using Angular2 packages without using node or mamp or xampp and host that app. Ref
According to the above reference I created my app using angular 2 - cli after that I made a little change in my root directory index.html file which is:
<base href="/">
into
<base href="./">
and build my app using:
ng build --prod
copy dist folder and paste it in my xampp htdocs folder and access the site using:
localhost:8080/dist/
output
App works
Comments
Post a Comment