How to use drop down menu in Angular

I cannot change my Tag attribute to dropdown style.
I have read document about ais-refinement-list and facet but it’s not easy to understand.

<ais-instantsearch [config]=“config”>

<div class="tag-panel">
  <div id="tag">
    <ais-search-box></ais-search-box>
    <ais-panel>
      <ais-refinement-list
      attribute="Tag"
      operator="and">
    </ais-refinement-list>
    </ais-panel>
    <ais-clear-refinements
    buttonLabel="Clear all filters">
  </ais-clear-refinements>
  </div>
</div>
<div class="left-panel">   
  <ais-configure [searchParameters]="{ hitsPerPage: 6 }"></ais-configure>
</div>
<div class="right-panel">
  <ais-hits>

    <ng-template let-hits="hits" let-results="results">
      <ol class="ais-Hits-list">
        <li *ngFor="let hit of hits" class="ais-Hits-item">
          <div class="hit-name">
            <img src="{{hit.LOGO_URL}}" alt="{{hit.logo}}"/><br>
            <div *ngIf="results.query && results.query.length > 0">
              <ais-highlight attribute="LOCATION" [hit]="hit"></ais-highlight>
            </div>
          </div>
        </li>
      </ol>
      <div id="pagination">
        <ais-pagination></ais-pagination>
      </div>
    </ng-template>
  </ais-hits>
</div>
![Screenshot 2020-10-27 111304|690x167](upload://pShD5p3f91C2cavkhpzjI019F9H.png)

Json

“Tag”: [
“B2B”,
“B2C”,
“A2A”,
“A2C”
],

Hi @ynaka,
Thanks for reaching out to us.
I’m not 100% sure what you mean to do.
If I understand correctly, you want to have a button, and when you click it, you want to make the following display:

    <ais-panel>
      <ais-refinement-list
      attribute="Tag"
      operator="and">
    </ais-refinement-list>
    </ais-panel>

right?

You can implement it just like you do it in Angular without InstantSearch.
However if ais-refinement-list disappears from the DOM, InstantSearch will make a search with different parameters, which you don’t want. So when it’s collapsed, you shouldn’t get rid of it from the DOM, but just style it hidden.

Let me know how it goes and if you have any question.