How to Build a Counter Component with Web Components - JavaScript Tutorial

Поділитися
Вставка
  • Опубліковано 19 січ 2025

КОМЕНТАРІ • 22

  • @kerrykreiter445
    @kerrykreiter445 Рік тому +2

    Going to be watching all the vids in this playlist

  • @alanbalvin7731
    @alanbalvin7731 5 місяців тому

    This is the first video tutorial i started and ended in just one session since i start studying programming one year and a half ago, very well explained and straight forward to the point!!! I hope to get the job of my dreams after i learnt how to build a web component

  • @suelingsusu1339
    @suelingsusu1339 Рік тому +3

    WOW... BRAVO!!! This was very educational and your explanation SUPERB...👏👏👏🙏🙏🙏🙏🙏👌👌👌👌👌🖖🖖🖖🖖🖖

  • @kerovinvillegas6402
    @kerovinvillegas6402 4 місяці тому

    Thanks for this. I am just started learning Web Components and the first videos I've watched was declaring a new Template element then cloning it before appending it to the shadow DOM. I am now curious which approach is better - this defining the template with arrow scoped function or the template element?

  • @johnlabuci96
    @johnlabuci96 Рік тому +1

    this is very good tutorial, and dive deep too..

  • @BryanDevsCoding
    @BryanDevsCoding Рік тому +1

    nice tutorial Thank you.

  • @switchlyrics.
    @switchlyrics. 11 місяців тому +1

    can you define a js to handle component operations inside a template also and render it ?

  • @richardalvarado1877
    @richardalvarado1877 Рік тому +1

    Thank you for this

  • @rayyanabdulwajid7681
    @rayyanabdulwajid7681 Рік тому +1

    What is the use of frameworks if we have this feature?

  • @shinchikichin
    @shinchikichin 6 місяців тому

    Great video! So nicely explained.
    Just asking here. Let's say I wanted to use this in a project. It will be very cumbersome to write the html, and also debug, without proper code completion (intellisense). Is there a way around this at the moment? Any suggestions are welcome.

  • @aaronelmquist8607
    @aaronelmquist8607 5 місяців тому

    Question. Why is the listener bound in the render method? Is that the only place we have access to the shadow dom elements?

    • @aaronelmquist8607
      @aaronelmquist8607 5 місяців тому

      Nice video by the way. I really enjoyed it.

    • @aaronelmquist8607
      @aaronelmquist8607 5 місяців тому

      That last part on how to reference the attributes in the index js file is gold.

  • @Bengadeer
    @Bengadeer Рік тому +1

    Error on index.js: import is from ../components/Counter.js not ./components/Counter.js

  • @KelvinWKiger
    @KelvinWKiger 8 місяців тому

    thank you

  • @innerstateofflow7777
    @innerstateofflow7777 Рік тому +1

    can you make more web components tutorial

  • @EpicGamer-ny1fu
    @EpicGamer-ny1fu 9 місяців тому

    Why are you defining your Components in index.js instead of at the bottom of your component js file?

  • @noswag5773
    @noswag5773 10 місяців тому

    Wow mozzila didn't put it this way, I was so confuse. I PREFER THIS ❤❤❤

  • @EpicGamer-ny1fu
    @EpicGamer-ny1fu 9 місяців тому

    and why are you using strings as templates... you should be using html templates with web components...

    • @philipk9130
      @philipk9130 8 місяців тому

      how can be used html templates with web components?, every example showed in youtube have the template created in js (strings, or backticks same thing), or in the index.html which is non optimal, how can be used for example a template part in its own folder with just html in it for the template and be called in the js component and be called and printed in the index.html page? i was using fetch but live code throw a error about inserting body or head tag to proper working, this is the only option?

  • @KelvinWKiger
    @KelvinWKiger 8 місяців тому

    I got no IntelliSense : (