My changes above in screenshot. Just changed the text to Download PDF before it was something else.
Replaced the folder here with the complied code 
Used this command to compile: ng build --base-href=/parent/ --configuration=production
I have Angular code. I made changes to it and complied with it. It complied successfully with no errors and when I replace the complied folder in server it does not reflect changes.
I tested it out by changing the spelling to make sure I am not making wrong changes or at least the small spelling such as “Ham” to “Han” should reflect as its just text changes but I see no changes.
The process I followed is:
- Make my changes to the file let’s say parent.html
- Compile the whole folder that has parent.html which is
parentfolder. - It creates
distfolder and insidedistfolder it hadparentfolder, so I replace the parent folder in live server because in server we haveparentfolder where I want to make changes, so I replaced it with my parent folder with my changes.
So, what I am doing wrong here or missing something, so it does not reflect changes? I had to change in complied file to reflect the changes which is not best way.

Just look through the dist folder an look for you changes if they are there probably your server caches the files. If not you maybe need to specify the project in the build command.