Stuck on angular 2 deployment to github pages


anyone there has deployed angular 2 app on github pages. If yes please guide me thorugh here I dont get it why this app is not getting deployed and I am getting the below error

Failed to load resource: the server responded with a status of 404 (Not Found)
only my index page is loading

I’m not sure exactly what the problem is, but I quickly found“ was one of the requests. I’m guessing that should be Hope that steers you in the right direction!

@P1xt ut that is the autogenerated part now how do I edit it. That branch was auto generated from CLI using ngh

@P1xt I tried to build it using your method I get the below error

GET“ 404 (Not Found)

But when I am using my local I am not getting such errors

I could have fixed that up if I knew whats wrong … it is running fine on my local I dont know why I am getting this error when deploying

@P1xt Just updating answer I found the solution to the above we need to change the base href=’/ng4Portfolio/’ then it works for me