Home / Function/ $mount() — vue Function Reference

$mount() — vue Function Reference

Architecture documentation for the $mount() function in index.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  5bac1f11_777f_a278_4448_6ab4df56f572["$mount()"]
  741f07d4_91fb_0d2e_19fb_525f8624bea6["index.ts"]
  5bac1f11_777f_a278_4448_6ab4df56f572 -->|defined in| 741f07d4_91fb_0d2e_19fb_525f8624bea6
  style 5bac1f11_777f_a278_4448_6ab4df56f572 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/runtime/index.ts lines 36–42

Vue.prototype.$mount = function (
  el?: string | Element,
  hydrating?: boolean
): Component {
  el = el && inBrowser ? query(el) : undefined
  return mountComponent(this, el, hydrating)
}

Domain

Subdomains

Frequently Asked Questions

What does $mount() do?
$mount() is a function in the vue codebase, defined in src/platforms/web/runtime/index.ts.
Where is $mount() defined?
$mount() is defined in src/platforms/web/runtime/index.ts at line 36.

Analyze Your Own Codebase

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

Try Supermodel Free