Answers for "transfer class from outer component to css file angular"

CSS
1

transfer class from outer component to css file angular

// :host pseudo-class will apply styles to the parent of the current component

:host {
  background-color: #ffffff;
  color: black;
}

// ::ng-deep pseudo-class will apply styles to the current component and its children

::ng-deep div.feature {
  border: 1px solid green;
  border-radius: 50%;
}
Posted by: Guest on November-30-2020

Code answers related to "transfer class from outer component to css file angular"

Browse Popular Code Answers by Language