×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jun 27, 2017 6:46 AM
Views: 4
Tags: no tags
  1. :host >>> h1 {
  2.   background-color: red;
  3. }
  4.  
  5. :host targets the current element.
  6.  
  7. >>> (or /deep/) makes Angular ignore _nghost-xxx attributes which is used for component style encapsulation emulation.