Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

DomScope

interfaz

Fragmento de DOM que pertenece a una instancia o a una región dinámica: los hijos de root o, con marcadores, los nodos entre los comentarios start y end.

ts
import type { DomScope } from "@meekojs/meeko";

Source code src/app/runtime/renderer.ts:37

Declaración #

ts
interface DomScope {
	root: Element
	start?: Comment
	end?: Comment
}

Example #

ts
import type { DomScope } from "@meekojs/meeko";
import { hydrateScope } from "./Card.meeko";

const scope: DomScope = { root: document.querySelector("#card")! };
const release = hydrateScope(scope, { title: "Hola" });

Propiedades #

root #

propiedad

root: Element

Elemento que contiene la instancia.

start #

propiedad opcional

start?: Comment

Comentario inicial de la región, si no ocupa todo root.

end #

propiedad opcional

end?: Comment

Comentario final de la región.

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/app/runtime/renderer.ts