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

Router #19

Open
daslicht opened this issue Feb 13, 2016 · 2 comments
Open

Router #19

daslicht opened this issue Feb 13, 2016 · 2 comments

Comments

@daslicht
Copy link

Hi,
I tried adding a route like this:

require('./name.tag');

<app>
  <name first="Hello" last="World"></name>
  <name first="Ola" last="Mundo"></name>
  <name first="Hallo" last="Welt"></name>
</app>


<script>
riot.route('/fruit', function(name) {
  console.log('The list of fruits');
})
riot.route.start(true);

</script>

But it is not found ?

@cuu508
Copy link

cuu508 commented May 31, 2016

@daslicht what URL are you requesting in the browser? It is http://yourserver/#fruit not http://yourserver/fruit

@daslicht
Copy link
Author

->>> riot.route('/fruit',

http://yourserver/fruit

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