How to call external javascript function in angular 5?

前端 未结 4 1554

I have downloaded a theme from this link. I have to define script and CSS in index.html file.

index.html (body section)


  

        
4条回答
  •  青春惊慌失措
    2020-12-17 05:33

    You can call these methods by window object-

    document.addEventListener("DOMContentLoaded", function (event) {
          window['navbarToggleSidebar']();
          window['navActivePage']();
     });
    

提交回复
热议问题