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

$emit Property

$emit is a method that constructs a CustomEvent and emits it globally. This can be useful for propogating information to different components by using the l-on directive.

Syntax: $emit([event], [options])

Example: $emit('foo')

Edit this page
Previous
« $event Property
Next
$refs Property »
Copyright © 2020-2021 Aiden Bai.
Fiscally sponsored by The Hack Foundation.
Nonprofit EIN: 81-2908499.