transfer class from outer component to css file angular

Solutions on MaxInterview for transfer class from outer component to css file angular by the best coders in the world

showing results for - "transfer class from outer component to css file angular"
Salvatore
01 May 2017
1// :host pseudo-class will apply styles to the parent of the current component
2
3:host {
4  background-color: #ffffff;
5  color: black;
6}
7
8// ::ng-deep pseudo-class will apply styles to the current component and its children
9
10::ng-deep div.feature {
11  border: 1px solid green;
12  border-radius: 50%;
13}
14