title: Detect if the user fills the form with the autofill option of google chrome
body: <p>If anyone can guide me on how to detect if the user fills the form with the autofill option of google chrome.</p>
  
  <p>I have a directive where each time the user fills in the field and change the blur sends an event to google analytics.</p>
  
  <p>But also I need to detect whether the user has filled the form with the autofill option of chrome and push the data for each of the fields to google analytics.</p>
  
  <p>Part of my directive:</p>
  
  <pre><code>element.bind('blur', function (e) {
    if ((e.target.value !== 0) &amp;&amp; typeof value !== 'undefined')  {
      if (_.has(ga_data, 'sendEvent')) {
        analyticsService.sendEvent(ga_data.sendEvent);
      }
  
      if (_.has(ga_data, 'action') &amp;&amp; ga_data.action === 'blur') {
        analyticsService.sendEvent(ga_data);
      }
    }
  });
  </code></pre>