title: Commenting Angular 2 / Ionic 2 project with JSDoc
body: <p>I am trying to start documenting my Ionic 2 app using JSDoc but I am having difficulty using it with Angular 2's syntax.</p>
  
  <p>For example, I have the following code at the top of my app:</p>
  
  <pre><code>import {App, Events, IonicApp, Platform} from 'ionic-framework/ionic';
  import {UserData} from './providers/user-data';
  
  @App({
    templateUrl: 'build/app.html',
    providers: [UserData],
    config: {
  
    }
  })
  </code></pre>
  
  <p>When trying to parse this file, JSDoc gives this error because of @App:</p>
  
  <p><code>ERROR: Unable to parse /home/user/Projects/mobileApp/app/app.js: Line 4: Unexpected token ILLEGAL</code></p>
  
  <p>Also, my constructors look like this (I used Ionic 2's tutorial template):</p>
  
  <pre><code>class MyApp {
    constructor(app: IonicApp, platform: Platform, events: Events, userData: UserData) {
  
    }
  }
  </code></pre>
  
  <p>And this produces the error:</p>
  
  <p><code>ERROR: Unable to parse /home/user/Projects/mobileApp/app/app.js: Line 27: Unexpected token :</code></p>
  
  <p>Could someone please tell me how to get around these errors?</p>
  
  <p>Thanks for any help.</p>