search

Home  >  Q&A  >  body text

angular.js - How to force refresh subpages in angular? Or how to refresh other pages in the route?

Original problem: After angular uses the routing configuration page, the CSS of the subpage becomes invalid

As mentioned in the title, what caused it... and the CSS was obtained and stored in the cache.

Now we find that only the subpages linked in the homepage, that is, the first refreshed partial page, can be displayed normally when refreshed for the first time. So the question is, how to force refresh the subpage? Or how to refresh other pages in the route?

天蓬老师天蓬老师2865 days ago644

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-05-15 16:54:21

    Locate new problems and solutions:

    How to refresh the entire page in angular?

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-15 16:54:21

    Whether the css is referenced on the child page or the parent page, check the path

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-15 16:54:21

    Don’t worry, owner, check if the css is not loaded, try introducing css on the template page~~~

    reply
    0
  • Cancelreply