Comments (7)
👍
from handlebars.
@gaand added question as reminder to consultant to mention in commit fd8be0f
from handlebars.
@J-Weeks I'm not seeing that in the commit you linked.
from handlebars.
@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.
They run into it as soon as they use dynamic rendering.
from handlebars.
I think this is where it needs to get covered since this is what causes problems when not taking it into account.
from handlebars.
@gaand @jrhorn424
May I add a demo section to the repo that will cover...
- Trying to add a click event on the dynamic template content (it can simply change the font color of the element clicked)
- Having the click event not work because the elements are not yet in the DOM
- Explain event bubbling
- 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)
- Consider adding helpers lab at end HOT 2
- Explicitly mention not IDs in templates
- JSisSexy Link in README links to wrong address
- Change URL to deployed application
- Update solution
- Update 1st Lab instructions
- Add .then and .catch
- Create diagnostic
- Ensure all data rendered includes an id and use that in the template
- Fix links in What is Handlebars
- Correct typos in README under Hands on with Handlebars Lab HOT 2
- Fix grammar of Final Challenge instruction HOT 1
- Mention safe strings HOT 1
- Change 'move' to 'comment out' in bulleted list
- Incorrect path
- third party api over http returning error HOT 1
- no root key usage HOT 5
- Remove helpers
- Change var's to let HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from handlebars.