The problem of ui-router loading sub-page JS

  node.js, question

With the template page introduced by ui-router, why are the JS files in the template page useless?
For example, I quoted ueditor in the template page, and it will not be displayed in ui-view?

Ueditor jade template

div
 Script # editor (type =' text/plain', name = "content" style =' width: 100%;  height:500px;'  ).
 
 script(type='text/javascript', charset='utf-8', src='/ueditor/ueditor.config.js')
 script(type='text/javascript', charset='utf-8', src='/ueditor/ueditor.all.min.js')
 script(type='text/javascript', charset='utf-8', src='/ueditor/lang/zh-cn/zh-cn.js')
 script(type='text/javascript').
 var ue = UE.getEditor('editor');

Ui-router generated page

<div class="ng-scope" ui-view="">
 <div class="ng-scope">
 <form class="ng-pristine ng-valid" method="post">
 <div>
 < scriptid = "editor" type = "text/plain" name = "content" style = "width: 100 percent;  height:500px;"  ></script>
 </div>
 <p>
 < input value= "submit" type="submit ">
 </p>
 </form>
 </div>
 <script class="ng-scope" type="text/javascript" charset="utf-8" src="/ueditor/ueditor.config.js"></script>
 <script class="ng-scope" type="text/javascript" charset="utf-8" src="/ueditor/ueditor.all.min.js"></script>
 <script class="ng-scope" type="text/javascript" charset="utf-8" src="/ueditor/lang/zh-cn/zh-cn.js"></script>
 <script class="ng-scope" type="text/javascript">
 var ue = UE.getEditor('editor');  alert('haha');
 </script></div>

Ueditor can’t get out. I can’t pop up a message even if I add alert.
If it can be opened without ui-router, how can it be solved?

Landlord, I also encountered the same problem. How did you solve it