I am working with a div in Angular and I am looking to switch between 3 classes.
My HTML code looks like this:
<div *ngIf="status">Content Here</div>
In my .ts file, I have defined a variable:
status = 'closed';
The status variable can hold one of the following values...
closed, opened or hidden.
Depending on the value of status, I need to apply different classes or CSS styles to the div element.
Can anyone guide me on how to achieve this?