// RecipeCard.js class RecipeCard extends HTMLElement { // Called once when document.createElement('recipe-card') is called, or // the element is written into the DOM directly as constructor() { super(); // Inheret everything from HTMLElement // EXPOSE - START (All expose numbers start with A) // A1. TODO - Attach the shadow DOM to this Web Component (leave the mode open) let shadowEl = this.attachShadow({mode:'open'}); // A2. TODO - Create an
element - This will hold our markup once our data is set let articleEl = document.createElement('article'); // A3. TODO - Create a style element - This will hold all of the styles for the Web Component let styleEl = document.createElement('style'); // A4. TODO - Insert all of the styles from cardTemplate.html into the