title: How to get the device's uuid and model information in ionic based App?
body: <p>I have this piece of code in order to recognize/get the device information.</p>
  
  <pre><code>ionic.Platform.ready(function() {
      // will execute when device is ready, or immediately if the device is already ready.
      $scope.deviceInformation = ionic.Platform.device();
      $scope.currentPlatform = ionic.Platform.platform();
      $scope.currentPlatformVersion = ionic.Platform.version();
  });
  </code></pre>
  
  <p>as per the documentation given <a href="http://ionicframework.com/docs/api/utility/ionic.Platform/" rel="nofollow">Here</a>.
  The <code>ionic.Platform.device();</code> will return object that is returned to it by cordova. So in the object of cordova the object should contain information of uuid, version, model etc. The documentation is <a href="http://cordova.apache.org/docs/en/2.5.0/cordova_device_device.md.html#Device" rel="nofollow">Here</a></p>
  
  <p>So i tried to get the uuid and model from the object <code>deviceInformation</code> and built and seen the app in mobile, then it shows me <code>undefined</code> in the alert.</p>
  
  <p>I have shown it like this:</p>
  
  <pre><code>$scope.getDeviceInfo = function() {
      alert($scope.deviceInformation.uuid);
  }
  </code></pre>
  
  <p>How can i get the details of object returned my cordova to ionic??</p>