encapsulation: ViewEncapsulation.Emulated, // this is default view encapsulationencapsulation: ViewEncapsulation.None,encapsulation: ViewEncapsulation.ShadowDom,It does not effect by stylesheets in this page
If there is no styles or styleUrls in ViewEncapsulation.Emulated mode, this component will automatically set to ViewEncapsulation.None
Parent interacts with child using local variable
Component Ref
ElementRef
Let's take a look at this example
Everytime, user move to another screen and go back to the screen contain this component. Number of observers increased!

So how we fixed it? Easy peasy!
:host {
font-style: italic;
}
:host(.active) {
font-weight: bold;
}
:host-context(.active) { // same as :host()
font-style: italic;
}
// The following example targets all <h3> elements, from the host element down through this component to all of its child elements in the DOM.
:host ::ng-deep h3 {
font-style: italic;
}
/deep/ ~ ::ng-deep >>>How many ways?
Inline
Style files in component metadata
Template Inline Style
Template link tags
CSS @imports
Global styles
Event Listener
Key Press Listener
FullList Event
https://www.w3.org/TR/DOM-Level-3-Events-key/#named-key-attribute-values
Search "click" or "keypress"
Content projection is a pattern in which you insert, or project, the content you want to use inside another component
ng-template
ng-container
When the entire list has been prefetch, entire component will be rerendered
With tracky
Angular pass callback function to child component as input
methodName.bind(this, args);























































