child.html
<p>
<mat-form-field appearance="outline">
<mat-label>Password</mat-label>
<input matInput required [type]="show ? 'password' : 'text'" class="input">
<button mat-icon-button matSuffix (click)="show = !show" [attr.aria-label]="'Hide password'"
[attr.aria-pressed]="show">
<mat-icon matSuffix>{{show ? 'visibility_off' : 'visibility'}}</mat-icon>
</button>
</mat-form-field>
</p>
parent.html
<password></password>
Is there a way to retrieve the value of the component password
without utilizing [(ngModel)]
?