Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 重新加载角节点模块时出现的问题_Javascript_Html_Css_Angularjs_Node Modules - Fatal编程技术网

Javascript 重新加载角节点模块时出现的问题

Javascript 重新加载角节点模块时出现的问题,javascript,html,css,angularjs,node-modules,Javascript,Html,Css,Angularjs,Node Modules,我在重新加载为我的Angular项目创建的JS模块时遇到了一个问题,在本例中,它是一个水平时间线 有趣的是,如果我通过应用程序路由将应用程序指向“时间线”页面,该页面将使用模块的功能,那么一切都将正常运行,时间线将成功显示 问题是,当我转到应用程序中的任何其他页面并尝试返回到时间轴页面时,按钮和内容完全混乱,看起来页面没有加载创建的JS模块 下面,我将在angular.json脚本中插入符号,该脚本将通知创建此节点模块的路径 JS模块调用都是通过html直接进行的,我在html中通过类填写时间线

我在重新加载为我的Angular项目创建的JS模块时遇到了一个问题,在本例中,它是一个水平时间线

有趣的是,如果我通过应用程序路由将应用程序指向“时间线”页面,该页面将使用模块的功能,那么一切都将正常运行,时间线将成功显示

问题是,当我转到应用程序中的任何其他页面并尝试返回到时间轴页面时,按钮和内容完全混乱,看起来页面没有加载创建的JS模块

下面,我将在angular.json脚本中插入符号,该脚本将通知创建此节点模块的路径

JS模块调用都是通过html直接进行的,我在html中通过类填写时间线信息,例如:

<a href="#0" data-date="01/01/2017" class="selected"> 01/2019 </a>

以下是包含内容的日期:

<li class = "selected" data-date = "1/16/2014">
          <h2 id = "tituloTimeline"> An Introduction to Infosec </h2>
          <em> January, 2017 </em>
          <p id = "textTimeline">
            Back in January, 2017 I began my journey of studies into different
            areas of infosec to see if it was a challenge I would enjoy and a
            future prospect for further learning through college.
          </p>
</li>
  • 信息安全导论 2017年1月

    2017年1月,我开始了我在不同领域的学习之旅 看看这是否是一个挑战,我会喜欢和一个 通过大学继续学习的未来前景。

  • 最终的实现将直接使用数据库中的数据,但如果我无法解决这个问题,我将不得不找到其他替代方案。(如果你能说出在Angular制作水平时间轴的其他方法,我将不胜感激!!)

    谢谢你

    <li class = "selected" data-date = "1/16/2014">
              <h2 id = "tituloTimeline"> An Introduction to Infosec </h2>
              <em> January, 2017 </em>
              <p id = "textTimeline">
                Back in January, 2017 I began my journey of studies into different
                areas of infosec to see if it was a challenge I would enjoy and a
                future prospect for further learning through college.
              </p>
    </li>