angular.js - Circular dependency issue in angular custom directive
typecho
typecho 2017-06-22 11:53:19
0
2
956

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? ?

typecho
typecho

Following the voice in heart.

reply all(2)
女神的闺蜜爱上我

"<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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template