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? ?
"<my-directive1>depends on<my-directive2>" What does it mean? Data dependencies? Logically? Or function call?
Can it be merged into one?
Your logic is not smooth. Even if this call is possible, efficiency is still a problem.