Learn What the Directive Composition API Is and How To Use It in Angular 15

  Рет қаралды 8,754

Code Shots With Profanis

Code Shots With Profanis

Күн бұрын

Пікірлер: 71
@MrJameelopix
@MrJameelopix 2 жыл бұрын
most underrated youtube channel. we need more videos like these.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Many thanks for your warm feedback Mohamed!
@DChristop
@DChristop Жыл бұрын
Congratulation Fanis! EAP for ever!!!
@CodeShotsWithProfanis
@CodeShotsWithProfanis Жыл бұрын
🥳🥳
@andresmauriciofajardoolaya2721
@andresmauriciofajardoolaya2721 2 жыл бұрын
this is a better explain than angular team does. Thanks for the video
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Glad you liked it and thanks for your feedback 🙂
@ytamb01
@ytamb01 2 жыл бұрын
I didn't understand the significance of the directive composition API when it was announced, but you have explained the concepts really well. Thanks.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Thanks for your feedback Andy! Glad you liked it 🙂
@andreifara9558
@andreifara9558 Жыл бұрын
Same here, it gives us now lots of options.
@JBuchmann
@JBuchmann Жыл бұрын
Very helpful, thank you! This is also a nice refresher for creating simple Directives. And also a reminder to use Directives more because I tend to forget about them.
@BenceGutai
@BenceGutai Жыл бұрын
I always come here if something needs to be explained related to Angular. Great tutorial again, thanks for your work! :)
@CodeShotsWithProfanis
@CodeShotsWithProfanis Жыл бұрын
Glad to hear that!
@mikoajholcman4693
@mikoajholcman4693 Жыл бұрын
Great job Mr! I like the way you explain the concept.
@CodeShotsWithProfanis
@CodeShotsWithProfanis Жыл бұрын
Glad you liked it!
@titokris5162
@titokris5162 2 жыл бұрын
Thanks Fanis. A fantastic explanation and example to go along. You gave a lot of understanding to the Directive Composition API !!!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Thanks for your feedback Tito! Glad you liked it 🙂
@claudiuciprianbetiuc3985
@claudiuciprianbetiuc3985 2 жыл бұрын
One more nice and clean explanation. Thanks!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Thanks for your feedback! Glad you liked it!
@ranjanadeore2957
@ranjanadeore2957 2 жыл бұрын
Thank you sir for uploading a great lecture explanation. Your teaching method is very deep from scratch to end.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Thanks for your warm feedback. Glad you liked it :)
@sudiptomukherjee644
@sudiptomukherjee644 2 жыл бұрын
Thank you for this excellent and informative video.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Glad you liked it Sudipto :)
@oktomatiko59
@oktomatiko59 2 жыл бұрын
Please produce more video content! It's really helpful! For example Angular Elements, Angular Microfrontends with Webpack Federation, etc...
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Thanks for your feedback. What you have asked for is great! Noted ;)
@aram5642
@aram5642 Жыл бұрын
And if I may piggyback here: SSR too!
@fmaransatto
@fmaransatto Жыл бұрын
Awesome explanation, thank you so much!
@CodeShotsWithProfanis
@CodeShotsWithProfanis Жыл бұрын
Glad it was helpful!
@luigidicarmino4669
@luigidicarmino4669 2 жыл бұрын
Thank you for your great tutorials over all. Please keep going with this perfectly created content for Angular education.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Thanks for your feedback. Good to know you liked it :)
@Nabulio85
@Nabulio85 Жыл бұрын
I just discovered your channel. Great explanations. You have a new subscriber!
@CodeShotsWithProfanis
@CodeShotsWithProfanis Жыл бұрын
Awesome, thank you!
@Hariharan0606
@Hariharan0606 2 жыл бұрын
Clearly explained!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Glad you liked it
@mumps59
@mumps59 Жыл бұрын
Wow, LOVE this explanation. Thank you! I hadn’t seen the must-be-stand-alone req before this…so that means I might not be able to combine third party directives I guess…I’ll have to experiment.
@CodeShotsWithProfanis
@CodeShotsWithProfanis Жыл бұрын
Glad it was helpful!
@priyankaravichandran851
@priyankaravichandran851 Жыл бұрын
Amazing , very clear explanation ,great job
@CodeShotsWithProfanis
@CodeShotsWithProfanis Жыл бұрын
Glad it was helpful!
@carloszm7494
@carloszm7494 2 жыл бұрын
Gold content. Thanks
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Glad you liked it :)
@richnimbu
@richnimbu Жыл бұрын
Beautiful explanation!
@CodeShotsWithProfanis
@CodeShotsWithProfanis Жыл бұрын
Thank you!
@김찬기-c7g
@김찬기-c7g Жыл бұрын
Thank you for susch educatinal information about Directives. I have a question! The change detection will run when you use HostListener, so what is the point of declaring runOutSideAngular method inside the onClick function??
@OlehBiblyi
@OlehBiblyi 2 жыл бұрын
Thanks, nice examples.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Thank you!
@christianaustria741
@christianaustria741 2 жыл бұрын
Awesome content. Thanks. One question though, is importing the standalone directives in NgModule in this case required? It seems they work with just the hostDirectives in the component
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
I just saw that I did that. Thanks for pointing this out. We do not need to import the hostDirectives in the appModule
@andreifara9558
@andreifara9558 Жыл бұрын
Just out of curiosity, for the last example with the EventDirective, would it be possible to set the "data: any" as @Input in EventDirective and pass through AppComponent's template? Like you did with the "color" input of the UnderlineDirective
@giorgoskontis7185
@giorgoskontis7185 2 жыл бұрын
Thank you for the video :D
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
You are welcome :)
@yuriinadilnyi3029
@yuriinadilnyi3029 Жыл бұрын
cool and clear explanation
@CodeShotsWithProfanis
@CodeShotsWithProfanis Жыл бұрын
Glad to hear that!
@costagmc1
@costagmc1 2 жыл бұрын
great prof.
@JoshDeveloper
@JoshDeveloper 2 жыл бұрын
what's the app u r using to record the videos ? )
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
I use OBS for the recording and kdenlive for editing
@JoshDeveloper
@JoshDeveloper 2 жыл бұрын
@@CodeShotsWithProfanis Awesome, thanks)
@bally8428
@bally8428 2 жыл бұрын
Great video
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Thank you!
@brtk7
@brtk7 2 жыл бұрын
I really like that compositional style of building components, very powerful. What if two directives or component share outputs names/ has conflicting names? Thanks
@aram5642
@aram5642 Жыл бұрын
I'm curious if those two mouseenter (or any other) listeners can be run in any deterministic order... It doesn't matter in this particular example, but could matter in a different one.
@CodeShotsWithProfanis
@CodeShotsWithProfanis Жыл бұрын
If by "run in a deterministic order" you mean the "execution order", then yes, they have a specific order where they are executed. You can find more here angular.io/guide/directive-composition-api#directive-execution-order If this is not what you meant :) please reply
@DjSilent
@DjSilent 2 жыл бұрын
You are more amazing than David Blaine, thank you for this
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Thanks for your warm feedback. Glad you liked it 🙂
@arthurfedotiew3609
@arthurfedotiew3609 2 жыл бұрын
Thank you Master Profanis!) Is it possible to scope host directive DI to host view itself, or is it inevitable thta child views will have access to host directive?
@richerite
@richerite Жыл бұрын
Cool example, but I can’t think of practical use cases? Does anyone have any suggestions
@SamiullahKhan
@SamiullahKhan 2 жыл бұрын
The official example wasn't helping but these are helpful, I will need more use case for host directive
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Glad you found it useful!
@pskabdulnawaz2622
@pskabdulnawaz2622 2 жыл бұрын
Hi Profanis, Just a query at kzbin.info/www/bejne/aISZd4mqYtmEba8 why do we need to add MouseEnterDirective to imports array in NgModule when it is already declared as standalone. Can you please clarify? Edited: Got it, as AppComponent is not declared as a standalone we are defining it as a dependency in the imports array. BTW I learned a lot from your videos and am a regular subscriber of yours. Thank you for all your hard work and content.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Thanks for your comment. We actually do not have to import the HostDirectives in the NgModule. Thanks for pointing this out
@TheCMajor9th
@TheCMajor9th 2 жыл бұрын
exceptional ! i tried it out also with onmouseover event :) thank you for sharing !
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Glad you liked it 🙂
Angular Content Projection: Everything You Need to Know
20:01
Code Shots With Profanis
Рет қаралды 11 М.
How To Make Angular Code More Reusable
19:14
Decoded Frontend
Рет қаралды 31 М.
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
Reuse Directives | Directive Composition API
4:22
Web Tech Talk
Рет қаралды 1,1 М.
Local Change Detection in Angular is easy with Signals
10:40
Code Shots With Profanis
Рет қаралды 2,9 М.
Introducing the Directive Composition API in Angular v15
4:27
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 904 М.
NgTemplateOutlet in Angular - Everything You Have to Know (2022)
35:15
Decoded Frontend
Рет қаралды 54 М.
I only ever use *these* RxJS operators to code reactively
25:25
Joshua Morony
Рет қаралды 136 М.
Angular Injection Token - When to Use It?
6:19
Monsterlessons Academy
Рет қаралды 13 М.
What's New in Angular v15, by Minko Gechev
28:59
JetBrains
Рет қаралды 27 М.
Learn How to Use Angular's 17 Defer Block
23:50
Code Shots With Profanis
Рет қаралды 4,2 М.
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН