Home / Function/ on() — vue Function Reference

on() — vue Function Reference

Architecture documentation for the on() function in on.ts from the vue codebase.

Entity Profile

Relationship Graph

Source Code

src/compiler/directives/on.ts lines 4–9

export default function on(el: ASTElement, dir: ASTDirective) {
  if (__DEV__ && dir.modifiers) {
    warn(`v-on without argument does not support modifiers.`)
  }
  el.wrapListeners = (code: string) => `_g(${code},${dir.value})`
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free