Build Angular Modal Without Libs - Angular Dynamic Component

preview_player
Показать описание

Learn how to create Angular modal without any libraries. As we want to render our modal in body we must learn how to create Angular dynamic component on the fly.

🛠 Need a video editor?

📌 Social

📚 References

🕒 TIMESTAMPS
0:00 Introduction
1:02 Initial project
1:49 Angular modal architecture
2:11 Angular dynamic component
4:46 Modal service
9:28 Outputs for modal

This video is NOT sponsored. Some product links are affiliate links which means if you buy something I'll receive a small commission.
Рекомендации по теме
Комментарии
Автор

🚀 Want to become a senior developer?
My Bootcamp gives you a clear path from mid to senior — practical, structured, and no fluff.

MonsterlessonsAcademy
Автор

Great tutorial. This highlights the things you need to consider if you write a custom modal. It also helps you understand the implementation in libraries like ng-bootstrap. Thanks.

ytamb
Автор

You've been saving my ass for the past 6 months at my job hahahaha thank you so much dear friend!

EduardoMartinez-dmpp
Автор

Wowww, insane tutorial! Thanks a lot.

MolotovClipes
Автор

Man, i consider myself a very productive angular developer since im very experienced, but you are literally fluent.

Very nice deep comprehension of this amazing fw, btw are you freelance?

Yarinmimon
Автор

Incredible video! I always benefit from your videos, particularly at work. Thank you very much for your hard work! I would like to suggest utilizing diagrams to explain the outline of the process for those whom rely on aids for visualization, such as myself.

aleph_fenix
Автор

Thank you, great work. Why dint you cinsider to detach the modal component when closed

rahultej
Автор

Hello. Me again. How do you send dynamic data through the modal? Hardcoded content shows:

<ng-template #modalTemplate>
<p>TEST</p>
</ng-template>

But if I try and send dynamic data from the component, it doesn't show:

<ng-template #modalTemplate>
<p>{{ heading }}</p>
</ng-template>

Would really appreciate your help.

oladipogeorge
Автор

seems formcontrol bindings and dynamic data in the ng template that is to be put in the body is not working

anirbandas
Автор

it shows ComponentFactoryResolver as deprecated in import, can you tell me how to use it the actual way please?

claudiotorres
Автор

hello great video please i would like to know how to implement this modal open with componentRef instead of templateRef

donachou
Автор

Great video.
A have one question. How I can customise these modal?
A want to open these modal, but I don’t want to use static component.
Me need the hand over any component to openModal method and open the modal using component which I hand over in those method. How I can doing this? Thanks for answer

kolan
Автор

How can we implement it without using deprecated stuff

howdy_suraj
Автор

Very nice! If your modal content is a form, how would you generically handle the submit with the modal's confirm button?

tmsmiffs
Автор

Hi you are doing awesome. can you please let us know what VIM based editor are you using. and please post a full PROD ready ANGULAR Application with DB connection with authentication and authorization ?

vivinbro
Автор

But componentFactoryResolver is deprecated. How can we achieve the same without it?

sameerdas
Автор

another question, it is necessary that the openModal method is in the appComponent file? Could it be in the component file of the template which opens the modal?

claudiotorres
Автор

ComponentFactoryResolver and other staff are already deprecated

RazDva-lgis
Автор

thanks for the video, but i cant use Reactive Form with this

zangzang
Автор

как закрывать модалку с помощью кнопки которая находится в ngcontent?

skidrow