This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

svelte-exec
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i svelte-exec

Weekly Downloads

5

Version

1.0.2

License

MIT

Unpacked Size

3.86 kB

Total Files

7

Last publish

Collaborators

  • a3k