How to use the svelte/internal.text function in svelte

To help you get started, we’ve selected a few svelte examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sveltejs / svelte / test / js / samples / debug-foo / expected.js View on Github external
c: function create() {
			span = element("span");
			t0 = text(t0_value);
			t1 = space();

			{
				const foo = ctx[1];
				console.log({ foo });
				debugger;
			}

			add_location(span, file, 6, 1, 82);
		},
		m: function mount(target, anchor) {
github sveltejs / svelte / test / js / samples / each-block-changed-check / expected.js View on Github external
c() {
			div = element("div");
			strong = element("strong");
			t0 = text(ctx[6]);
			t1 = space();
			span = element("span");
			t2 = text(t2_value);
			t3 = text(" wrote ");
			t4 = text(t4_value);
			t5 = text(" ago:");
			t6 = space();
			attr(span, "class", "meta");
			html_tag = new HtmlTag(raw_value, null);
			attr(div, "class", "comment");
		},
		m(target, anchor) {
github sveltejs / svelte / test / js / samples / instrumentation-template-if-no-block / expected.js View on Github external
c() {
			button = element("button");
			button.textContent = "foo";
			t1 = space();
			p = element("p");
			t2 = text("x: ");
			t3 = text(ctx[0]);
			dispose = listen(button, "click", ctx[1]);
		},
		m(target, anchor) {
github sveltejs / svelte / test / js / samples / each-block-changed-check / expected.js View on Github external
c() {
			div = element("div");
			strong = element("strong");
			t0 = text(ctx[6]);
			t1 = space();
			span = element("span");
			t2 = text(t2_value);
			t3 = text(" wrote ");
			t4 = text(t4_value);
			t5 = text(" ago:");
			t6 = space();
			attr(span, "class", "meta");
			html_tag = new HtmlTag(raw_value, null);
			attr(div, "class", "comment");
		},
		m(target, anchor) {
github sveltejs / svelte / test / js / samples / component-store-reassign-invalidate / expected.js View on Github external
c() {
			h1 = element("h1");
			t0 = text(ctx[1]);
			t1 = space();
			button = element("button");
			button.textContent = "reset";
			dispose = listen(button, "click", ctx[2]);
		},
		m(target, anchor) {
github sveltejs / svelte / test / js / samples / instrumentation-script-x-equals-x / expected.js View on Github external
c() {
			button = element("button");
			button.textContent = "foo";
			t1 = space();
			p = element("p");
			t2 = text("number of things: ");
			t3 = text(t3_value);
			dispose = listen(button, "click", ctx[1]);
		},
		m(target, anchor) {
github sveltejs / svelte / test / js / samples / deconflict-builtins / expected.js View on Github external
c() {
			span = element("span");
			t = text(t_value);
		},
		m(target, anchor) {
github sveltejs / svelte / test / js / samples / event-handler-dynamic / expected.js View on Github external
c() {
			p0 = element("p");
			button0 = element("button");
			button0.textContent = "set handler 1";
			t1 = space();
			button1 = element("button");
			button1.textContent = "set handler 2";
			t3 = space();
			p1 = element("p");
			t4 = text(/*number*/ ctx[1]);
			t5 = space();
			button2 = element("button");
			button2.textContent = "click";

			dispose = [
				listen(button0, "click", /*updateHandler1*/ ctx[2]),
				listen(button1, "click", /*updateHandler2*/ ctx[3]),
				listen(button2, "click", function () {
					if (is_function(/*clickHandler*/ ctx[0])) /*clickHandler*/ ctx[0].apply(this, arguments);
				})
			];
		},
		m(target, anchor) {
github sveltejs / svelte / test / js / samples / instrumentation-script-x-equals-x / expected.js View on Github external
c() {
			button = element("button");
			button.textContent = "foo";
			t1 = space();
			p = element("p");
			t2 = text("number of things: ");
			t3 = text(t3_value);
			dispose = listen(button, "click", ctx[1]);
		},
		m(target, anchor) {