commit #1 - Introduction to Web Components w/ Iliya Idakiev | commit.js

preview_player
Показать описание
( ⚠️ Please note the pinned comment for more info about the template tag usage in this video since it's not being used the best way)

In the next couple of series we will be developing our own Angular like library that will speed up our development process.

Everyone is welcome to participate by asking questions inside the chat section!

Speaker: Iliya Idakiev
Panellists: Aleksander Kostov, Hristyan Hristov.

Рекомендации по теме
Комментарии
Автор

Hi guys, and thanks for sharing this experience with us - great work!
I do have one question, regarding what you did at 19:24.

Why do we need to create everything inside a template element, and then clone that template's content and insert it in our component's instance?

I did read a bit about the <template> tag, but the only advantage I see about it, is that it gets created once and is efficiently copied by the browser later.

But we lose that advantage by creating this template every time we instantiate our component.

Why don't we just do: inside our class?

gkarapeev