What is the difference between :host and \:host (with a backslash) in sass?

Viewed 20

I'm adding styles to a component app-root for example. so I used :host inside component's sass file to style the component itself and it is working as expected.

Looking at the code base I noticed that in multiple places they are using \:host instead of :host. I tried adding the \ and got the same result.

So what is the \ and when should it be used ?

0 Answers
Related