title: How to declare list in Angular class?
body: <p>I have created username, password etc in an Angular class, I want to add list of roles in the same class, how can I add a list of roles?</p>
  
  <pre><code>export class User {
      userid: number;
      username: string;
      password: string;
      role: list;==&gt; need to correct
  }
  </code></pre>