title: Angular directive parameter length limit
body: <p>Is there a length limit for a parameter that is sent to a directive? Here is my code:</p>
  
  <pre><code>header = JSON.stringify(header);
  columnObj = JSON.stringify(columnObj);
  $compile('&lt;div column-filter-sort header=' + header + ' columnobj=' +     columnObj + '&gt;&lt;/div&gt;')(scope);
  </code></pre>
  
  <p>Directive:</p>
  
  <pre><code>a.directive('columnFilterSort', function () {
  return {
      link: function (scope, elem, attrs) {
          var columnObj = JSON.parse(attrs.columnobj);
          var header = JSON.parse(attrs.header);
  }
  });
  </code></pre>
  
  <p>Var columnObj looks fine, but it fails at var header = JSON.parse(attrs.header);
  Checking var header I see that it's not complete. The error I am getting is:
  SyntaxError: Unexpected end of input
      at Object.parse (native)</p>
  
  <p>Please help.</p>
  
  <p>Thanks</p>