angular.module('myDirective, [])
.directive('myDirective', function() {
return {
restrict: 'E',
scope: {
selectObject: '='
},
link: function(scope, element, attrs, controllers) {
scope.selectObject = 'Result value';
};
});
<my-directive select-object="myVariableInControlle"></my-directive>