Here is the landing-HTML
page that I have:
<div class="container">
<div>
<mat-radio-group class="selected-type" [(ngModel)]="selectedType" (change)="radioChange()">
<p class="question">Which movie report would you like to see?</p>
<mat-radio-button id="movie-a" class="Movie-type" [value]="MovieType.HORROR">Horror</mat-radio-button>
<mat-radio-button id="movie-b" class="Movie-type" [value]="MovieType.ROMANTIC">Romantic</mat-radio-button>
</mat-radio-group>
</div>
<movie-report *ngIf="showMovieReport"></movie-report>
</div>
The <movie-report>
component is separate and has its own component.ts
, which makes a REST Call
and provides data.
I am looking for a way to pass the MovieType
data to the MovieReport
component. Can anyone help me with this?