title: How to update an input's value after calling $setViewValue
body: <p>I have a form input with a <code>ng-model</code> as well as my custom directive which reads cookie data and should set the input value:</p>
  
  <pre><code>&lt;form&gt;
      &lt;input type="text" id="name" ng-model="name" my-cookie-directive&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My directive:</p>
  
  <pre><code>angular.module('myApp.directives').directive('myCookieDirective', ['CookieService', function(CookieService) {
  
      return {
          require: 'ngModel',
          link: function(scope, elem, attrs, ctrl) {
              var cookieVal = CookieService.getCookie(attrs.ngModel);
  
              if(cookieVal != '') {
                  ctrl.$setViewValue(cookieVal);
                  elem.val(cookieVal); //not very cool hum?
              }
          }
      };
  }]);
  </code></pre>
  
  <p>When logging <code>ctrl.$modelValue</code> I can see that the right cookie data was set to my controller variable <code>name</code> but the input stays blank. I know that <code>$setViewValue</code> does not trigger a <code>$digest</code> and therefore tried <code>ctrl.$render()</code> but nothing happens. </p>
  
  <p>I ended up using <em>jQuery</em> to set the <code>input</code>'s value which is not satisfying at all.</p>
  
  <p>Thanks in advance :)</p>