- @ViewChild and @ViewChildren are local template query mechanism, they can only query component references/nstivr elements of their template and nothing more, this means @ViewChild query can not see inside the templates of child components or parents components, e.g. content projected elements
- They are aviliable after ngAfterViewInit is called
<ng-content></ng-content>
use ng-container instead, ng-container doesn't create extra elements
- @HostBinding
- @HostListener
- Export as directive instance reference, in which way you can access public properties and methods
Write custom star syntax ngxUnless
:host, ::ng-deep
with ::ng-deep to remove _ngcontent-c1 attributes
Default vs Shadow DOM
-
ViewEncapsulation.Emulated(default)
-
ViewEncapsulation.None
-
ViewEncapsulation.ShadowDom
Custom Service to fetch data


























