title: Angular 2 | How to pass a model data into another model
body: <p>How to pass a model data into another model</p>
  
  <p>For Example i want to inject the model 2 <code>modelUser</code> to model 1 <code>user</code>.. </p>
  
  <p>model1.ts</p>
  
  <pre><code>export class model1{
    constructor(private user: modelUser;){}
  }
  </code></pre>
  
  <p>model2.ts</p>
  
  <pre><code>export class model2{
     constructor(public modelUser: string){}
  }
  </code></pre>