I have a use case where I need 1 view (Template) to show on screen based on a condition. Their are over 10 templates available but only one of them needs to be visible at a time.
Which of the following solutions is most relevant
- Using ngIf over each div
- Using ngSwitch and show div based on the condition
- Using templates (how to manage this)
- Any other way..?
I want to use templates for each view type, so that my code stays clean and scalable.