title: Use AngularJS controller scope property in directive when property isn't available in directive link phase
body: <p>I have a view with a call to a directive on it. In this directive I want to use a property of the controller scope. However this property isn't set yet when the directives link function runs because it's set on the return of a resource call. </p>
  
  <p>How can use the property value in the directive when it is available from the Resource result?</p>
  
  <p>I curerntly have:</p>
  
  <pre><code>        .directive('meImageUpload', ['$parse', '$compile', function ($parse, $compile) {
          return {
              restrict: 'A',
              scope: {
                  imageUploadType: '=imageUploadType',
                  imageUploadId: '=imageUploadId'
              },
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;div me-image-upload image-upload-type="'quote'" image-upload-id="record.Id"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>but this results in imageUploadId always being undefined.</p>