How to pass object to directive through attribute in AngularJS?
<p>I want to pass object (reference - two way binding) through ATTRIBUTE not by isolated scope. How can I do this? Because code bellow passing string instead of object:</p>

<p>HTML</p>

<pre><code>&lt;tr ng-form="rowForm" myDirective="{{row.data}}"&gt;
</code></pre>

<p>Directive</p>

<pre><code>angular.module("app").directive("myDirective", function () {
    return {
        require: ["^form"],
        restrict: "A",
        link: function (scope, element, attrs, ctrls) {
            scope.$watch(function () {
                return attrs.myDirective;
            }, function (newValue, oldValue) {
            // .....
</code></pre>