How to import jQuery to Angular2 TypeScript projects?

前端 未结 7 1925
一向
一向 2020-12-01 14:48

I want to wrap some jQuery code in an Angular2 directive.

I installed jQuery library for Typings into my project with the following command:

typings in

7条回答
  •  爱一瞬间的悲伤
    2020-12-01 15:13

    You could also load your jQuery Javascript file in a normal script tag in the head section of your index.html.

    
        
            
    
                                     
                  
提交回复
热议问题