add propagarEventos
This commit is contained in:
9
propagarEventos/src/Boton.svelte
Normal file
9
propagarEventos/src/Boton.svelte
Normal file
@@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import { createEventDispatcher } from "svelte";
|
||||
let dispatch = createEventDispatcher();
|
||||
const pulsar = () => {
|
||||
dispatch("pulsado");
|
||||
};
|
||||
</script>
|
||||
|
||||
<button type="button" on:click={pulsar}>Púlsame</button>
|
||||
Reference in New Issue
Block a user