title: angular-cli with cordova plugins error
body: <p>When i build an Angular 4 app with ng-build I get the following error when I try to access device.uuid: </p>
  
  <blockquote>
    <p>/navigation.component.ts (14,5): Cannot find name  'device'. </p>
  </blockquote>
  
  <p>All plugins I refer to within TS files cause this error. I don't know how to use Cordova and the Cordova plugins correctly with Angular-CLI. I have written the cordova.js and the script files for the plugins into the scripts part of angular-cli.json without success. I only find examples with ionic everywhere. </p>
  
  <p>The problem is that the Cordova script and the scripts for the plugins are actually only available at runtime of the app and not while the compile time. That's why the angular cli doesn't really know the scripts. And even though I entered these scripts in the script part,  device is not found at device.uuid. I have also included all index.d.ts files via @types/..... Visual Studio Code jumps to the correct declaration file.</p>