1.0.2 • Published 7 months ago

svelte-exec v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Svelte-Exec

A tiny svelte component to emit a load event when the component is loaded.

Installation

npm install svelte-exec

Usage

<script>
	import Exec from 'svelte-exec';
</script>

<Exec on:load={() => {
  console.log('Hello World!');
}} />

In this example, when the component is loaded it will emit a load event, which can be listened to using the on:load syntax in the parent component.

Events

  • load: emitted when the component is loaded.
1.0.2

7 months ago

1.0.1

7 months ago

1.0.0-rc4

1 year ago

1.0.0-rc3

1 year ago

1.0.0-rc2

1 year ago

1.0.0-rc1

1 year ago

1.0.0

1 year ago