search

Home  >  Q&A  >  body text

angular.js - Circular dependency issue in angular custom directive

How to solve the circular dependencies in angular custom instructions?

For example, the custom directive <my-directive1> depends on <my-directive2>, and <my-directive2> in turn depends on <my-directive1>

Is there any solution for a problem similar to this? ?

typechotypecho2706 days ago953

reply all(2)I'll reply

  • 女神的闺蜜爱上我

    女神的闺蜜爱上我2017-06-22 11:55:19

    "<my-directive1>depends on<my-directive2>" What does it mean? Data dependencies? Logically? Or function call?

    Can it be merged into one?

    reply
    0
  • PHP中文网

    PHP中文网2017-06-22 11:55:19

    Your logic is not smooth. Even if this call is possible, efficiency is still a problem.

    reply
    0
  • Cancelreply