Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- 1. import custom element mycard ที่เราสร้างมาใช้งาน -->
- <script type="module" src="my-card.js"></script>
- <!-- 2. สร้าง tag my-card เพื่อเรียก custom element ที่เราสร้างมาใช้งาน โดยมีการกำหนด Property 3 ตัว คือ รูปภาพ ชื่อ และตำแหน่ง -->
- <my-card image="img_avatar" name="John Doe" position="Architect & Engineer"></my-card>
- <my-card image="img_avatar2" name="Jane Doe" position="Interior Designer"></my-card>
Add Comment
Please, Sign In to add comment