title: How to handle $ctrl. in AngularJS?
body: <p>I have a Methode from an API. It returns a promise which resolves to an $ctrl(?) object. This objects should contain a measurement and will be updated whenever it receive a new data. </p>
  
  <pre><code>getMeasurements.latest(filter)     //only a object to filter through all measurements
      .then(function (latestMeasurement) {
          $ctrl.latestMeasurement = latestMeasurement;
  });
  </code></pre>
  
  <p>My problem is that I don't know how to work with this data or display it in my html file. How does $ctrl work?</p>
  
  <p>Here the <a href="http://resources.cumulocity.com/documentation/jssdk/latest/#/api/c8y.core.service:c8yMeasurements#methods_latest" rel="noreferrer">documentation</a> of the API</p>