jQuery and AngularJS: Bind Events to Changing DOM

后端 未结 3 970
春和景丽
春和景丽 2020-12-01 08:37

In my DOM in AngularJS, I am using an ng-include inside a ng-repeat directive. It is loading the HTML just fine. Anyway, an issue I have is that I\'m using JQuery (latest ve

3条回答
  •  失恋的感觉
    2020-12-01 09:09

    disclaimer: I have been learning angular myself so these are basically just half-educated guesses.

    First, consider using angular directives for the job as stated by Bertrand and Mark.

    Second, make sure that jquery gets loaded before angular, see here.

    Third, it might be a (dynamic) binding issue, see here.

    Please, feedback.

提交回复
热议问题