bradtraversy / meanauthapp

Complete MEAN stack app with authentication
242 stars 152 forks source link

Changes in HTML files not reflecting #36

Open sarthakaggarwal97 opened 6 years ago

sarthakaggarwal97 commented 6 years ago

Pls help!

CaolanMcB96 commented 6 years ago

I too am having this issue

shivi60007 commented 6 years ago

Anyone have solution of it

timy600 commented 6 years ago

Your application doesn't take into account the changes to the HTML files because the entry file (public/index.html) redirect you to the bundle files in the same directory. These represent the entire project compiled. You must change the index.html so it leads you to the router (or in this case... app.js? since it looks like it's working as a dispatcher)

tomcatbuzz commented 6 years ago

You have to define your routes in app-module if you want to add more pages. The MEAN app in this repo and from the youtube video is for educational purposes. The Author should not have to help you build an entire project. I recommend viewing the Angular Documentation pages and do searches online for "adding" to this project. Just by saying changes in html not reflecting is not a descriptive enough issue. The App works from the original creation and updates have been made. If you choose to use it to build more of a project, go for it. It is a guide for you to start.

tomcatbuzz commented 6 years ago

@timy600 the app.js is the backend of the project. Angular-src is the frontend. You don't modify the index html. You work on the front end files from this location meanauthapp/angular-src/src/app/. App.module.ts contains routing for the Angular files.