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?
Comments
Post a Comment