title: How to populate the data getting from loop ngFor on select a dropdown based on selected value
body: <p>I have a div and select box. Initially I am populating all data on div using ngFor loop. Now I need to populate the data also based on selected option from select box. Suppose my selected value is 0, all data matched with 0,need to populate. I am already getting data using filter on select but how to populate in html using same variable(partnerContent) again, I am not getting. Here is code below
  <a href="https://stackblitz.com/edit/angular-6b8szk?file=src%2Fapp%2Fapp.component.html" rel="nofollow noreferrer">https://stackblitz.com/edit/angular-6b8szk?file=src%2Fapp%2Fapp.component.html</a></p>
  <h2 id="app.component.ts">app.component.ts</h2>
  <pre><code>import { Component, OnInit } from '@angular/core';
  
  @Component({
    selector: 'my-app',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
  })
  export class AppComponent {
    partnerContent: any;
    selectValChange;
    ngOnInit(): void {
      this.partnerContent = [
        {
          id: 1,
          status: 'one',
          type: 0
        },
        {
          id: 2,
          status: 'two',
          type: 0
        },
        {
          id: 3,
          status: 'three',
          type: 1
        }
      ];
    }
    name = 'Angular';
    selected(selectedLevel: any) {
      console.log(selectedLevel);
      this.selectValChange = this.partnerContent.filter(function(el: any) {
        return el.type == selectedLevel.type;
      });
      console.log(this.selectValChange);
    }
  }
  </code></pre>
  <h2 id="app.component.html">app.component.html</h2>
  <pre><code>&lt;hello name=&quot;{{ name }}&quot;&gt;&lt;/hello&gt;
  &lt;p&gt;
    Start editing to see some magic happen :)
  &lt;/p&gt;
  &lt;div *ngFor=&quot;let cont of partnerContent&quot;&gt;{{cont.status}}&lt;/div&gt;
  &lt;select [(ngModel)]=&quot;selectedLevel&quot; (change)=&quot;selected(selectedLevel)&quot;&gt;
  &lt;option *ngFor=&quot;let content of partnerContent&quot; [ngValue]=&quot;content&quot;&gt;
  {{content.type}}
  &lt;/option&gt;
  &lt;/select&gt;
  </code></pre>