Communicating with sibling directives

后端 未结 6 568
余生分开走
余生分开走 2021-01-31 10:19

Goal: Create behaviors using directives with communication between 2 sibling elements (each their own directive).

A behavior to use in example: The article content is hi

6条回答
  •  长情又很酷
    2021-01-31 10:32

    Or you can create a service just for directive communication, one advantage of special service vs require is that your directives won't depend on their location in html structure.

提交回复
热议问题