如何在每条路线上重新设置角度延迟加载模块?

问题描述

我创建了一个角度应用程序,并在该应用程序中实现了延迟加载模块功能

问题:当最终用户在应用程序中工作时,我已经更改了一些.html,.css或.ts文件并进行了部署。因此,我只想将这些更改应用于最终用户而无需刷新。

我已经使用了此https://medium.com/@aakashbumiya/auto-reload-for-clients-after-deploy-with-angular-7-production-build-bdc45be9b2bd。一切正常。我不要这个。

有什么可能的方法来 无需重新加载的新页面(ctrl + f5)。

#container {
  width: 100%;
  text-align: center;
}

.cloud {
  display: inline-block;
  list-style-type: none;
  width: 90%;
}

.cloud li {
  list-style: none;
  display: inline;
}

#tagcloud .smallest {
  font-size: .8em;
  font-weight: 400;
}

#tagcloud .small {
  font-size: .9em;
  font-weight: 500;
}

#tagcloud .medium {
  font-size: 1em;
  font-weight: 600;
}

#tagcloud .large {
  font-size: 1.3em;
  font-weight: 700;
}

#tagcloud .largest {
  font-size: 1.6em;
  font-weight: 800;
}

/* ---------------------------------------------
    Media Queries
--------------------------------------------- */
/* SM Small devices */
@media(min-width: 576px) {
  .cloud {
    width: 80%;
    margin: auto;
  }
}

/* MD Tablets */
@media (min-width: 768px) {
  .cloud {
    width: 70%;
    margin: auto;
  }
}

/* LG Desktop */
@media (min-width: 992px) {
  .cloud {
    width: 60%;
    margin: auto;
  }
}

/* XL Modern desktop */
@media (min-width: 1200px) {
  .cloud {
    width: 50%;
    margin: auto;
  }
}

删除,RecordsModule在第一条路线上被加载为45b78i5d239hg.js。下次不加载。为什么?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)