WebComponents
• ࠶ར༻ՄೳͳಠࣗͷΧελϜཁૉΛ࡞͠ɺ͜ΕΛ
ΣϒΞϓϦͰར༻͢ΔͨΊͷٕज़
• Custom elements
• Shadow DOM
• HTML templates
• HTML imports←ഇࢭ
Slide 13
Slide 13 text
Demo
Slide 14
Slide 14 text
export let title = "Svelte Card";
export let message = "This is card component created by svelte";
let selected = false;
function handleOnClick() {
selected = !selected;
}
/* লུ */
{title}
{message}
Svelte CustomElement
Slide 15
Slide 15 text
Svelte x {{ name }}
import "../public/svelte-elements";
WebComponents in Vue