title: Angular - Get object from foreign key
body: <p>I started to work with Angular recently and i am currently facing an issue which is something very common.</p>
  
  <p>So let's say i have a class Employee like :</p>
  
  <pre><code>class Employee{
      name : string;
  }
  </code></pre>
  
  <p>then i have another class Project with two employees as foreign key :</p>
  
  <pre><code>class Project{
      subject : string;
      employee1_id : number;
      employee2_id : number;
  }
  </code></pre>
  
  <p>Now, I would like to display all the projects BUT i want to display the name of the employees.</p>
  
  <p>So it means that i have to :</p>
  
  <ol>
  <li>Get all the project</li>
  <li>For each project
  a. Get the first Employee by id
  b. Get the second Employee by id</li>
  </ol>
  
  <p>Then i will have to add evreything in a list to display it.</p>
  
  <p>My issue is that i didn't find any solution to get the list of projects and then for each of them be able to get the two employee depending of their id for the current project.</p>
  
  <p>In fact, after the call of all projects, i don't know how i can use again two Oservable for each employee, and doing this in a loop. I am realy stuck and i don't understand why it seems to be so hard as it is for me something really common.</p>
  
  <p>Again, i am new with Angular so the issue is problably me, that's why i need your help.</p>
  
  <p>Thanks in advance.</p>