i have 2 types of component, i) before login ii) after login
want to add 2 different css for both parent component,
with using ViewEncapsulation.None it apply in sibling component also, here is the structure of code
- ParentComponent1 - ChildCompoent1.1 - ChildCompoent1.2 - ParentComponent2 - ChildCompoent2.1 - ChildCompoent2.2
if i add CSS in ParentComponent1 then it only apply in ChildComponent1.1 and ChildComponent1.2 not in 2.1 and 2.2, same thing apply in ParentComponent2
is there any way to remove ViewEncapsulation.None or apply CSS only in child component not in Sibling component