How to apply jquery after AngularJS partial template is loaded

后端 未结 7 2360
青春惊慌失措
青春惊慌失措 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:58

    A Directive is certainly a good option, but you can also add a controller to any partial, which will perform all tasks (also with jQuery if you want) after the partial is loaded:

    Example: partials/menu.html

    ...

提交回复
热议问题