From a button inside the header component I am calling a modal of the Angular Material, in this modal has a button enter, I would need that when clicking this button a component called banner would be hidden.
my app.component.html has this structure:
<app-header></app-header>
<app-banner></app-banner>
modal.component.html has this structure:
<p class="title">
  Enter
  <span class="close" mat-raised-button (click)="save()"><i class="fas fa-times-circle"></i></span>
</p>
  <form class="dialog-enter">
    <table>
      <tr>
        <td colspan="2">
          <input type="text" placeholder="E-mail or phone number" />
        </td>
      </tr>
      <tr>
        <td colspan="2"> </td>
      </tr>
      <tr>
        <td colspan="2">
            <input type="password" placeholder="Password" />
        </td>
      </tr>
      <tr>
          <td colspan="2"> </td>
        </tr>
      <tr>
        <td colspan="2">
          <button class="enter">Enter</button>
        </td>
      </tr>
      <tr>
        <td class="remember">
            <mat-checkbox>Remember me</mat-checkbox>
        </td>
        <td class="help">
          <a href="javascript:void">Need help?</a>
        </td>
      </tr>
      <tr>
        <td colspan="2"> </td>
      </tr>
      <tr>
        <td colspan="2">
          <p class="title">New for here?</p>
          <button class="buy">Buy now!</button>
        </td>
      </tr>
    </table>
  </form>