Currently, my situation involves a class hierarchy setup:
https://i.sstatic.net/qnOzA.png
Within the Angular App, I have a Component in which I take a process as input:
@Input() currentProcess: Process
I wish to display a different div in the template based on the specific type of this process (either ProjectProcess or EmployeeProcess). While I could achieve this by using instanceof and setting a boolean variable to check with *ngIf in the template, I am unsure about this approach. Is there any other method or better solutions available?
Thank you for your assistance!