title: Angular : Make class available for an entire module
body: <p>I am new to angular. I have a simple class file <code>language.ts</code> like this :</p>
  
  <pre><code>export class Language {
      constructor(
          public code: string,
          public libelle: string) {}
  }
  </code></pre>
  
  <p>I have only one module </p>
  
  <p>How to make this class available for an <strong>entire module</strong> ?</p>
  
  <p>EDIT --</p>
  
  <p>Thanks <a href="https://stackoverflow.com/users/571407/jb-nizet">@JB Nizet</a>, I understand that it's really not a best practise to put it globally. I need to import it in <strong>each file</strong>.
  But if i want to have global value, like this for example :</p>
  
  <pre><code>    export class Language {
  
          languages = [
              new Language("fr", "Français"),
              new Language("en", "Anglais")
            ];
          currentLanguage = this.languages[0];
  
          constructor(
              public code: string,
              public libelle: string) {}
  }
  </code></pre>
  
  <p>How can I acess those values in components ?</p>