AngularJS communication between directives
问题 I'am new to Angular.js, I need for my application some communication between directives, I read some documentation about link and require, but can't understand exactly how it works. For a simple example I have : live fiddle : http://jsfiddle.net/yw235n98/5/ 2 directives : firstDir, secondDir :: with some data firstDir have a click function that will change the data value when firsDir click function is triggered I want to change data in secondDir too. HTML : <body ng-app="myApp"> First