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

"#/" wont trigger? was that the intention? #49

Open
englishextra opened this issue Dec 6, 2016 · 2 comments
Open

"#/" wont trigger? was that the intention? #49

englishextra opened this issue Dec 6, 2016 · 2 comments
Labels

Comments

@englishextra
Copy link

If it is, can you explain why. Thanks.

@jozhi
Copy link

jozhi commented Dec 13, 2016

@englishextra
This is not an invalid routing? You can add validation rules yourself, or:

routie({
    'index/:type': function() {
        console.log('index')
    },
    'edit/:info': function() {
        console.log('edit')
    },
    'add/:info': function() {
        console.log('add')
    },
    '*': function() {
        console.log('**')
    }
});

@englishextra
Copy link
Author

englishextra commented Dec 13, 2016

@jozhi Thanks.

I'm talking about this:

<a href="#/">Home</a>
routie({
    '/': function() {
        alert("This message will not trigger");
    }
});

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

No branches or pull requests

3 participants