List of Listings
Chapter 2. Your first Web Component
Listing 2.1. Giving our custom tag some custom logic
Listing 2.2. Query-selecting inner components and setting their style
Listing 2.3. A complete but simple Web Component example
Listing 2.4. Trading inline styles for CSS
Listing 2.5. A simple web page to test our server
Listing 2.6. Our photo carousel component used on a web page
Listing 2.7. Adding a script block with a class to define our component
Listing 2.8. Setting the HTML contents of our component
Listing 2.9. Adding some CSS to style our component
Listing 2.10. Adding a showPhoto method
Listing 2.11. Adding CSS to allow the current image to display correctly
Get Web Components in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.