title: How to create global model in Angular 2?
body: <p>I need to create global model(class) in Angular 2.</p>
  
  <p>That I can retrive properties and set them any time.</p>
  
  <p>I tried:</p>
  
  <pre><code>export class GlobalModel {
  
    private a: number;
    private s: number;
  
    constructor(s: number, a: number) {
  
    }
  }
  </code></pre>
  
  <p>But in each component I need to initialize model <code>new GlobalModel()</code>, that resets previos statement.</p>