system-svelte Svelte Themes

System Svelte

SystemJS plugin for compiling Svelte components

system-svelte

SystemJS plugin for compiling Svelte components

Installation

jspm install sv=npm:system-svelte
jspm install npm:svelte -o "{format: 'global'}"
# The second command is necessary because SystemJS gets confused
# about svelte's module format, this overrides it to be global

Usage

index.js

import App from './app.component.html!sv';

const app = new App({
    target: document.querySelector('#app'),
    data: {
        name: 'sweet dawg!!',
    }
});

app.component.html

<h1>Hello {{name}}</h1>

Top categories

Loading Svelte Themes