Home / Function/ initProps() — vue Function Reference

initProps() — vue Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d6eecf16_0b33_9978_9ebb_d8829be93c79["initProps()"]
  e9415a90_94de_e969_0351_990c46050d05["initExtend()"]
  e9415a90_94de_e969_0351_990c46050d05 -->|calls| d6eecf16_0b33_9978_9ebb_d8829be93c79
  a592e65e_63b6_f3cc_cc80_030328fd88d5["initProps()"]
  d6eecf16_0b33_9978_9ebb_d8829be93c79 -->|calls| a592e65e_63b6_f3cc_cc80_030328fd88d5
  b28f2cc5_e9df_82f7_d7e9_a1e5617cf102["proxy()"]
  d6eecf16_0b33_9978_9ebb_d8829be93c79 -->|calls| b28f2cc5_e9df_82f7_d7e9_a1e5617cf102
  style d6eecf16_0b33_9978_9ebb_d8829be93c79 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/global-api/extend.ts lines 82–87

function initProps(Comp: typeof Component) {
  const props = Comp.options.props
  for (const key in props) {
    proxy(Comp.prototype, `_props`, key)
  }
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does initProps() do?
initProps() is a function in the vue codebase.
What does initProps() call?
initProps() calls 2 function(s): initProps, proxy.
What calls initProps()?
initProps() is called by 1 function(s): initExtend.

Analyze Your Own Codebase

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

Try Supermodel Free