title: Creating a an Object of an Object Angular 4
body: <p>I have defined an interface :</p>
  
  <pre><code>export interface Student {
    name : String;
    section:String;
    phoneNumber:String;
  }
  </code></pre>
  
  <p>i want to create an Object of an Object of type Student with <code>studentId</code> as key . i.e </p>
  
  <p><code>studentDetails[studentId]</code> should be of type Student;</p>
  
  <pre><code>studentDetails[studentId] : Student = [];
  </code></pre>
  
  <p>How can i implement this using inteface ?</p>
  
  <p>Thanks in advance</p>