How to call external javascript function in angular 5?

前端 未结 4 1555

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:51

    You need to change the order in which you load your JavaSciprt files. Try loading common.js before main......js. Your script tries to access a function from a file that hasn't been loaded yet. Try just switching those two lines of code:

    
      
      
      
    
                                     
                  
提交回复
热议问题