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

 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')
 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">
 < scriptid = "editor" type = "text/plain" name = "content" style = "width: 100 percent;  height:500px;"  ></script>
 < input value= "submit" type="submit ">
 <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');

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