title: Passing data from html div tag to controller in AngularJS
body: <p>I have a div in my html. Inside the div I am invoking a controller. I need to pass some data from div to the controller. I don't have any other html element in div like input fields/buttons etc.</p>
  
  <pre><code>    &lt;div ng-controller="writeLoadTimeController"&gt;
      &lt;!--adding this controller to send the page load time to server--&gt;
      $scope.loadTime=$window.performance.timing.domContentLoadedEventEnd-$window.performance.timing.navigationStart;
  
      &lt;/div&gt;
  </code></pre>
  
  <p>How do I pass the value of the loadTime field to the controller.</p>