Skip to main content
Create new
Introduction
Reactivity
Props
Logic
Events
Bindings
Lifecycle
Stores
Motion
Transitions
Animations
Easing
SVG
Actions
Classes
Component composition
Context API
Special elements
Module context
Debugging
7GUIs
Miscellaneous
App.svelte
<script>
//"normal way"
//import {ajax} from "rxjs/ajax"
//import {pluck, startWith} from "rxjs/operators"
//"umd bundle way"
import { default as rxjs } from "rxjs@6.5.1/bundles/rxjs.umd.min.js"
// import * as all from "rxjs@6.5.1/bundles/rxjs.umd.min.js"
// console.log(all)
const { ajax } = rxjs.ajax
const { pluck, startWith } = rxjs.operators
const users$ = ajax(`https://api.github.com/users?per_page=5`).pipe(
pluck("response"),
startWith([])
)

</script>
{#each $users$ as user}
<div>
{user.login}
</div>
{/each}
loading Svelte compiler...
/* Select a component to see its compiled code */
result = svelte.compile(source, {
generate: ,
});
/* Select a component to see its compiled code */