GithubHelp home page GithubHelp logo

Comments (7)

jrhorn424 avatar jrhorn424 commented on August 13, 2024

👍

from handlebars.

RealWeeks avatar RealWeeks commented on August 13, 2024

@gaand added question as reminder to consultant to mention in commit fd8be0f

from handlebars.

gaand avatar gaand commented on August 13, 2024

@J-Weeks I'm not seeing that in the commit you linked.

from handlebars.

MicFin avatar MicFin commented on August 13, 2024

@gaand @jrhorn424 Event bubbling generally leads into a discussion about event delegation, do we want to add these topics during this talk? My instinct is that it may not necessarily be ideal in the handlebars talk but I have a few ideas of how to work it in if we think it is the best place for it.

from handlebars.

jrhorn424 avatar jrhorn424 commented on August 13, 2024

They run into it as soon as they use dynamic rendering.

from handlebars.

gaand avatar gaand commented on August 13, 2024

I think this is where it needs to get covered since this is what causes problems when not taking it into account.

from handlebars.

MicFin avatar MicFin commented on August 13, 2024

@gaand @jrhorn424
May I add a demo section to the repo that will cover...

  1. Trying to add a click event on the dynamic template content (it can simply change the font color of the element clicked)
  2. Having the click event not work because the elements are not yet in the DOM
  3. Explain event bubbling
  4. Then show solving the failing click event using event delegation

During this demo, I can also show how to use a dynamic ID in a template as suggested in issue
ga-wdi-boston/handlebars-client#9

<li data-id-"{{this.id}}">{{this.name}}</li>

from handlebars.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.