angular-cli: 1.0.0-beta.18
node: 6.4.0
os: win32 x64 Windows 10
I have created an angular2 app & deployed it successfully.
app starts correctly after taking some time to load & then I am able to navigate to different components.
but when I put direct address in URL as :
it says 404 error.
even when I am creating bundle using ng build --prod , it creates dist folder correctly & I am able to navigate to different components using links only.
but I cant access components directly from the URL in my local system also.
I am using http-server.
are there any extra configurations required to make it work?
I have created an angular2 app & deployed it successfully.
app starts correctly after taking some time to load & then I am able to navigate to different components.
but when I put direct address in URL as :
it says 404 error.
even when I am creating bundle using
ng build --prod, it createsdistfolder correctly & I am able to navigate to different components using links only.but I cant access components directly from the URL in my local system also.
I am using
http-server.are there any extra configurations required to make it work?