Menu
Lucia LogoLucia
InstallationDiscussionsGitHub
🌜
🌞
Lucia LogoLucia
  • Installation
  • Discussions
  • GitHub
  • Fundementals
    • Installation
    • Introduction
    • Todo App Example
    • Core Concepts
    • Special Cases
  • Directives
    • l-state Directive
    • l-text Directive
    • l-html Directive
    • l-show Directive
    • l-on Directive
    • l-bind Directive
    • l-for Directive
    • l-model Directive
    • l-ref Directive
    • l-mask Directive
  • Special Properties
    • $el Property
    • $render Property
    • $event Property
    • $emit Property
    • $refs Property

l-text Directive

l-text allows you to set the textContent of an element. Any HTML will be stringified, check out l-html if you want to render dynamic content.

Syntax: <p l-text="[expression]">...</p>

Example: <p l-text="key">...</p>

Edit this page
Previous
« l-state Directive
Next
l-html Directive »
Copyright © 2020-2021 Aiden Bai.
Fiscally sponsored by The Hack Foundation.
Nonprofit EIN: 81-2908499.