title: Object passed to Angularjs directive is undefined
body: <p>I've been following the docs and reading other questions on SO, but I'm completely baffled.  I have an AngularJS 1.3.14 app. I am using <code>ng-route</code> with <code>controller-as</code> syntax to get to my page.  I have a large page that is working great.  However, I'm trying to create a directive and I cannot get a JS object to pass into the directive properly.</p>
  
  <p>This is the HTML:</p>
  
  <pre><code>&lt;timechart itemsToPlot="memberData.data.adcs" title="Tares" xprop="time" yprop="tare"&gt;&lt;/timechart&gt;
  </code></pre>
  
  <p>The variable <code>memberData</code> is my <code>controller-as</code> name.  The nested object <code>memberData.data.adcs</code> is used just above that line to build a table, and if I insert <code>{{ memberData.data.adcs }}</code> into the HTML page it prints out the JS object, so I know that there is data there.</p>
  
  <p>This is the directive:</p>
  
  <pre><code> myModule.directive('timechart', function() {
      var linker = function(scope, element, attrs) {
          var xprop = attrs['xprop'];
          var yprop = attrs['yprop'];
          var title = attrs['title'];
          console.log(typeof itemsToPlot);
          console.log(typeof scope.itemsToPlot);
          // blah blah blah elided
      };
      return {
          restrict: 'EA',
          scope: { 
              itemsToPlot: '=',
              title: '@',
              xprop: '@',
              yprop: '@'
          },
          link: linker
      };
  });
  </code></pre>
  
  <p>When I set a breakpoint right after the <code>console.log()</code> statements, I see that xplot, yplot, and title are all available, either through the <code>attrs</code> array (as shown in the code) or in the scope object.  The <code>itemsToPlot</code> variable, however, is always undefined. There is an <code>itemsToPlot</code> variable defined in the scope object, but it's always undefined.</p>
  
  <p>I've tried fifteen ways of forming the scope, naming the attributes, trying to get the variable to populate.  I've looked at all the questions on SO and it seems I'm doing it correctly.  I'm hoping someone here can see my error!</p>