How to apply css class to a component element when it's created by router-outlet?

前端 未结 11 1443
南旧
南旧 2020-12-15 15:41

I have DOM that looks something like this:


    
    ...

         


        
11条回答
  •  旧巷少年郎
    2020-12-15 16:09

    For me it helped to wrap the router-outlet into another container.

    Like this you could apply the class to the surrounding container.

提交回复
热议问题