On a webpage, I have both a checkbox and a textbox. The checkbox and textbox are separate components that function independently of each other.
The textbox should remain hidden until the checkbox is activated. If the checkbox is turned off, the textbox should also become hidden.
I am wondering if it is possible to achieve this using directives. Perhaps something like:
<checkbox></checkbox>
<textbox *ngIf="checkbox.value"></textbox>
Any help or advice on how to implement this would be greatly appreciated!