Home / Function/ onHashChange() — vue Function Reference

onHashChange() — vue Function Reference

Architecture documentation for the onHashChange() function in app.js from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  7b0faf2f_4cc6_6f39_8257_44197795988e["onHashChange()"]
  77d1728f_590d_4958_5664_2c21374800a4["app.js"]
  7b0faf2f_4cc6_6f39_8257_44197795988e -->|defined in| 77d1728f_590d_4958_5664_2c21374800a4
  style 7b0faf2f_4cc6_6f39_8257_44197795988e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

examples/classic/todomvc/app.js lines 143–151

function onHashChange () {
  var visibility = window.location.hash.replace(/#\/?/, '')
  if (filters[visibility]) {
    app.visibility = visibility
  } else {
    window.location.hash = ''
    app.visibility = 'all'
  }
}

Domain

Subdomains

Frequently Asked Questions

What does onHashChange() do?
onHashChange() is a function in the vue codebase, defined in examples/classic/todomvc/app.js.
Where is onHashChange() defined?
onHashChange() is defined in examples/classic/todomvc/app.js at line 143.

Analyze Your Own Codebase

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

Try Supermodel Free