title: angular2(typescript) export variables from another file
body: <p>In Nodejs I have a page called <code>variables.js</code> which looks something like this:</p>
  
  <pre><code>exports.var1= 'a';
  exports.var2= 'b';
  </code></pre>
  
  <p>This file holds variables I use within in my application all in one place.</p>
  
  <p>Then inside of another page I call this page using:</p>
  
  <pre><code>var variables= require('./variables');
  </code></pre>
  
  <p>Now I have access to the variable sin that page by using it like this for example:</p>
  
  <pre><code>alert(variables.var1);
  </code></pre>
  
  <p>I would like to do the same thing inside of angular2 (typescript). I have tried to play with exports and imports but I can't get it to work. How can I do this inside of angular2 using typescript?</p>