routing - Using Aurelia, how to use route-href to reference child routes? -


using aurelia, how 1 use route-href construct anchor tag href references child routes?

in app.js, define route parent view.

config.map([ {     route: 'parentview,    name: 'parentview',    moduleid: './parentview' }]); 

in parentview.js, configure routes child views:

config.map([ {     route: ['', 'childviewone'], name: 'childviewone', moduleid: './childviewone' },    route:      'childviewtwo',  name: 'childviewtwo', moduleid: './childviewtwo' } ]); 

i have found no way use route-href construct anchor tag href looks "parentview/childviewone" or "parentview/childviewtwo".

this seems simple , potentially common scenario. perhaps following issues getting in way? or missing something?

https://github.com/aurelia/router/issues/89

https://github.com/aurelia/router/issues/90


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -