title: How do I get a value from another component in my model?
body: <p>I'd like to set default values when instantiating a new object. I have a GlobalFunctions component which contains my global functions (surprise).
  Usually I would create components this way but I have no idea how to create it in the models. This is what I have now:</p>
  
  <pre><code>import { GlobalFunctions } from '../components/shared/GlobalFunctions';
  
  export class Order {
      constructor(private _GF: GlobalFunctions) { }
  
      Orderdate = &lt;string&gt;this._GF.getCurrentDate();
      DeliveryType = &lt;string&gt;null;
      ...
  }
  </code></pre>
  
  <p><code>_GF.getCurrentDate()</code> returns the date in <code>DD-MM-YYYY</code>-format.</p>
  
  <p>When I do it like this it returns an error in the console: <code>error TS2346: Supplied parameters do not match any signature of call target.</code>. Any ideas to solve my problem?</p>