Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to petite-vue #91

Open
bopjesvla opened this issue Oct 10, 2024 · 1 comment
Open

Move to petite-vue #91

bopjesvla opened this issue Oct 10, 2024 · 1 comment

Comments

@bopjesvla
Copy link
Owner

The time has come:

master...leon-wbr:hitch:master

We'll also need to implement basic router functionality as petite-vue doesn't have it. At its core, this just means making the hash reactive. This ought to work:

      init() {
        // Set initial hash value from URL
        this.hash = window.location.hash || '#home';

        // Listen for hash changes
        window.addEventListener('hashchange', () => {
          this.hash = window.location.hash;
        });
      },
@tillwenke
Copy link
Collaborator

What is the goal, what's the reason? ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants