How to apply jquery after AngularJS partial template is loaded

后端 未结 7 2377
青春惊慌失措
青春惊慌失措 2020-12-13 10:28

I have a simple website that implements jQuery in order to create a Slider with some images in the Index.html top banner.

Now, I want to use AngularJS

7条回答
  •  生来不讨喜
    2020-12-13 10:59

    I know it is an old thread but just for the sake of completion, you can use the following JQuery code. It is called event Delegation.

    $("#anyDivOrDocument").on('click', '#targetDiv', function(event) {
       event.preventDefault();
       alert( 'working' ); 
    });
    

提交回复
热议问题