jQuery not working with ng-repeat results

后端 未结 3 614
余生分开走
余生分开走 2020-12-14 12:33

I am using ng-repeat to build an accordion using jQuery and TB. For some reason, this is working perfectly when hardcoded but fails to trigger on click when inside of the ng

3条回答
  •  情话喂你
    2020-12-14 12:54

    You can run a jquery or any other javascript code after the angular finishes its rendering. For details see this answer : https://stackoverflow.com/a/20421291/2002079

提交回复
热议问题