title: Java Map of List ( Map<String, List<String>>) to Angular
body: <p>I am returning Java HashMap from Controller Map&lt;String, List&gt;</p>
  <p>Data is below -</p>
  <pre><code>{A=[X,Y,Z], B=[P,Q]}
  </code></pre>
  <p>In Angular, I want to display like this -</p>
  <pre><code>A
      X
      Y
      Z
  B
      P
      Q
  </code></pre>
  <p>I tried with this piece of code -</p>
  <pre><code>&lt;div&gt;
      &lt;div *ngFor=&quot;let first of content | keyvalue&quot;&gt;
          {{first.key}}
          &lt;div *ngFor=&quot;let second of first.value&quot;&gt;
              {{second}}
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>But I am getting &quot;Failed to compile.&quot; error.</p>
  <hr />
  <p>If I use below code-</p>
  <pre><code>&lt;div&gt;
      &lt;div *ngFor=&quot;let first of content | keyvalue&quot;&gt;
          {{first.key}} --&gt; {{first.value}}
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>I am getting below output-</p>
  <pre><code>A --&gt; X,Y,Z
  B --&gt; P,Q
  </code></pre>
  <p>I need values inside the list in separate lines. Any help would be appreciated!</p>
  <p>PS - I do not want to process data in typescript.</p>