简体   繁体   中英

Angular 9 not refreshing component - need to call ng serve

I'm working on an existing Angular component where I'm trying to renew the HTML markup. Unfortunately, Angular doesn't seem to update the page as would usually be the case. It's just a regular component without much markp or Typescript code, so I have no clue on why I have to call ng serve every time I want my changes to appear. It works for every other component and I haven't had this issue before. Any ideas why this could be happening?

Try removing the node modules and do install again.

rm -rf node_modules
npm update
npm install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM