24. Understand View Encapsulation in Angular. Difference between Emulated, None, and Shadow Dom.

  Рет қаралды 26,294

Leela Web Dev

Leela Web Dev

3 жыл бұрын

Hi Friends
In this video, we will see how to apply styles to all components that are declared in one component by using view encapsulation. Understand the difference between Emulated, None, and Shadow Dom.
If you like my video, please subscribe to my channel.
KZbin Page: / leelawebdev
Facebook Page: / leelawebdev
Twitter Page: / leelanarsimha
Linkedin: / leela-narasimha-reddy-...
GitHub: github.com/leelanarasimha
#Angular #leelawebdev

Пікірлер: 37
@indicprogrammer
@indicprogrammer Жыл бұрын
This was the new concept for me. as i have watched lots of angular tutorials but no one teaches this concept. thanks for creating this quality content....keep it up sir...
@priyasuryawanshi1143
@priyasuryawanshi1143 2 жыл бұрын
I read about this...in many places but I found it difficult... But after watching this video I am clear what is viewencapsulation Thank you so much
@tarcisiodeoliveira1140
@tarcisiodeoliveira1140 8 ай бұрын
Thank you, for your great assistence on my education on the topic and to pronounce it with the Pos-Doc degree accent.
@shubhamdas9489
@shubhamdas9489 2 жыл бұрын
You are very good sir ... thanks for quality content
@sherifsamir6888
@sherifsamir6888 2 жыл бұрын
thanks you so much, simply explained and to the point
@meetshah5062
@meetshah5062 2 жыл бұрын
Provide very good understanding of this.
@Aaaaa_kkkk
@Aaaaa_kkkk 3 жыл бұрын
Excellent. Following all ur videos they r very helpful. Thank you🙏
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
Thank You
@radhakrishna3023
@radhakrishna3023 3 жыл бұрын
yep this is first time to watch your videos awesome teaching skills also fantastic
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
Thanks and welcome
@krishnachaitanya7349
@krishnachaitanya7349 3 жыл бұрын
View Encapsulation - shadow DOM Shadow DOM is supported by default in Firefox (63 and onwards), Chrome, Opera, and Safari. The new Chromium-based Edge (75 and onwards) supports it too; the old Edge didn't. DOM (Document Object Model) There are some bits of shadow DOM terminology to be aware of: Shadow host: The regular DOM node that the shadow DOM is attached to. Shadow tree: The DOM tree inside the shadow DOM. Shadow boundary: the place where the shadow DOM ends, and the regular DOM begins. Shadow root: The root node of the shadow tree. ShadowDom Emulated None Limitations - There are many 3rd party libraries (or extensions) that won't work with Shadow DOM content because they were not designed to deal with it, or need some additional configuration to work with Shadow DOM. Metadata - Metadata is used to decorate a class so that it can configure the expected behavior of the class.
@shivaramkrishna6583
@shivaramkrishna6583 Жыл бұрын
Very nice explanation..
@NangalumYoutuberThaan
@NangalumYoutuberThaan 3 жыл бұрын
Great !
@naveenkumarpulikonda1998
@naveenkumarpulikonda1998 3 жыл бұрын
Nice explanation bro...
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
Glad you liked it
@prashantjoshi4691
@prashantjoshi4691 3 жыл бұрын
superb ,
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
Thanks a lot
@baskarrajagopalan7499
@baskarrajagopalan7499 2 жыл бұрын
ViewEncapsulation.ShadowDom is not clear. What is that real functionality of it? Could you please explain?
@LeelaWebDev
@LeelaWebDev 2 жыл бұрын
Shadow DOM allows hidden DOM trees to be attached to elements in the regular DOM tree - this shadow DOM tree starts with a shadow root, underneath which can be attached to any elements you want, in the same way as the normal DOM. For more info: developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM
@pusarlaaishwarya5035
@pusarlaaishwarya5035 3 жыл бұрын
input output concepts is only applicable for template forms??? can we also apply it for reactive forms??
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
Yeah. we can apply
@VENUGOPAL_0404
@VENUGOPAL_0404 2 жыл бұрын
We are working in single-spa microfrontends...In one single -spa app they have added css in styles.css...when I route to that application and coming back to our application...their css getting overriden by our css...how can I achieve shadowdom in single-spa microfrontends globally...not component level
@LeelaWebDev
@LeelaWebDev 2 жыл бұрын
Generally i use in the component level only. If you have any ideas let me know
@radhakrishna3023
@radhakrishna3023 3 жыл бұрын
can you explain unit testing briefly
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
Sure. I will cover
@amitgaikwad3120
@amitgaikwad3120 3 жыл бұрын
Saw each and every video for this topic on KZbin😅... But man...You just couldn't stop me from subscribing to your channel🔥🔥 Very well explained !! Keep up the fabulous work
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
Thank you so much 😀
@vandanasaini3520
@vandanasaini3520 2 жыл бұрын
kitini speed se bol rahe ho ap
@kashifalikhan4420
@kashifalikhan4420 Жыл бұрын
BTW emulated and ShadowDom is different,
@Respect_Mah_Authoritah_
@Respect_Mah_Authoritah_ 4 ай бұрын
Shadow DOM is not supported by browsers? Who told you that?
@LeelaWebDev
@LeelaWebDev 4 ай бұрын
It is not supported by old browsers. Modern browsers now supporting. That's why emulated is there
@Respect_Mah_Authoritah_
@Respect_Mah_Authoritah_ 4 ай бұрын
@@LeelaWebDev so then maybe you should update your video to reflect that? Otherwise it provides incorrect information that it’s not supported.
@LeelaWebDev
@LeelaWebDev 4 ай бұрын
This video is also long back taken. Now you are watching. Latest angular 17 videos also I uploaded
@Respect_Mah_Authoritah_
@Respect_Mah_Authoritah_ 4 ай бұрын
@@LeelaWebDev I’m watching this because this is the first result that is recommended when searching for this topic on KZbin. Not your Angular 17 video. Feel free to verify yourself.
@LeelaWebDev
@LeelaWebDev 4 ай бұрын
KZbin will show that is based on the search. That is your job to check whether the video is latest or not , based on the upload date.
@patrickxyascii5799
@patrickxyascii5799 3 жыл бұрын
Why can’t u explain in few sentences, u r going round and round n came to the point only in the last 2 mins
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
Ok i will try
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 74 МЛН
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 112 МЛН
Can You Draw A PERFECTLY Dotted Circle?
00:55
Stokes Twins
Рет қаралды 50 МЛН
Hot vs Cold Observable in RxJs (2021)
15:06
Decoded Frontend
Рет қаралды 26 М.
What’s new in Angular v18
20:08
Angular
Рет қаралды 107 М.
Angular Dependency Injection in Depth - Resolution modifiers (2021)
14:39
Senior Angular Developer Interview (theory)
41:57
WeCoded
Рет қаралды 11 М.
Learn Web Components In 25 Minutes
24:21
Web Dev Simplified
Рет қаралды 193 М.
Control Value Accessor in Angular [Advanced, 2020]
18:46
Decoded Frontend
Рет қаралды 56 М.
.NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
25:14
IAmTimCorey
Рет қаралды 545 М.
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 74 МЛН