title: Typescript export vs. default export
body: <p>What is the difference in Typescript between <code>export</code> and <code>default export</code>. In all the tutorials I see people <code>export</code>ing their classes and I cannot compile my code if I don't add the <code>default</code> keyword before exporting.</p>
  
  <p>Also, I couldn't find any trace of the default export keyword in the official <a href="http://www.typescriptlang.org/" rel="noreferrer">typescript documentation</a>.</p>
  
  <pre><code>export class MyClass {
  
    collection = [1,2,3];
  
  }
  </code></pre>
  
  <p>Does not compile. But:</p>
  
  <pre><code>export default class MyClass {
  
    collection = [1,2,3];
  
  }
  </code></pre>
  
  <p>Does.</p>
  
  <p>The error is: <code>error TS1192: Module '"src/app/MyClass"' has no default export.</code></p>