AngularJS: Linking to elements in a directive that uses ng-repeat

前端 未结 5 1792
夕颜
夕颜 2020-12-05 01:00

I have a simple directive where the template uses ng-repeat inside it. I need to run some code to instantiate a jquery component against some of the elements created by the

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-05 01:44

    I think this is because of the angular bug.You can see this here

    One workaround is to remove the template url and use the template in the directive itself or use $templateCache.get('/app/partials/my_directive.html')

    This worked for me :)

提交回复
热议问题