How to use jQuery with javascript in angular 2

前端 未结 7 911
说谎
说谎 2020-12-05 01:13
    import {Component, ElementRef, OnInit} from \'angular2/core\';
    declare var jQuery:any;
    @Component({
      selector: \'jquery-integration\',
      templat         


        
7条回答
  •  佛祖请我去吃肉
    2020-12-05 02:01

    You should not tie Angular component with jQuery at any price

    1. Load jQuery with
提交回复
热议问题