directive communication
how you can connect one directive through link function
HTML
<div ng-app="myApp">
<div ng-controller="appController">
{{name}}
</div>
</div>
JavaScript
var angApp = angular.module("myApp", []);
angApp.controller("appController", function($scope) {
$scope.name="sa";
});