title: Typescript Class as a Member Variable in Angular?
body: <p>I'm learning Angular and TypeScript and I have a question or two.</p>
  
  <p>With TypeScript can you have one class/object be the variable type for an other object as shown below? If so how do you reference the all of the members using Angular.</p>
  
  <pre><code>/* begin cmsfiles.ts */
  
  export class CMSFiles {
    fileID: number;
    fileDateTime: Date;
    fileName: string;
    description: string;
  }
  /* end cmsfiles.ts */
  
  /* begin news.ts */
  
  import { CMSFiles } from './cmsfiles';
  
  export class News {
    newsID: number;
    postDateTime: Date;
    title: string;
    body: string;
    file1: CMSFiles;
    file2: CMSFiles;
  }
  /* end news.ts */
  </code></pre>
  
  <p>In the Angular template I will need to use something like this:</p>
  
  <pre><code>&lt;input [(ngModel)]="news.file1.Title" placeholder="title" /&gt;
  </code></pre>
  
  <p>How can I achieve this?</p>