Lets say I have a element tree and I want to wrap it in different div based on a condition eg.
//condition == 1 <div class="condition1" condition1Directive> <div> ... </div> //same content </div> //condition == 2 <div class="condition2"> <div> ... </div> //same content </div> I would like to find the most elegant and efficient way to do this in angular. Thanks
condition1and the other directive ifcondition2? Slightly confused about your end goal. I think*ngIfis what you want, but I don't quite know what you're trying to achieve.