Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/snel/core/internals/types.d.ts>Svelte2TsxComponent#$set

A Cybernetical framework for svelte applications in deno
Latest
method Svelte2TsxComponent.prototype.$set
import { Svelte2TsxComponent } from "https://deno.land/x/snel@v0.7.1/core/internals/types.d.ts";

Programmatically sets props on an instance. component.$set({ x: 1 }) is equivalent to x = 1 inside the component's <script> block. Calling this method schedules an update for the next microtask — the DOM is not updated synchronously.

Parameters

optional
props: Partial<Props>