我想在我的角电子应用程序中添加路由,使我能够像在角路由中一样通过路由传递数据。
const routes: Routes = [
{
path: 'templates',
component: TemplatesComponent
},
{
path: 'templates/:id/questions/data',
component: TemplateDataComponent
},
{
path:'templates/:id/questions',
component: QuestionsComponent
}
];
我怎样才能做到这一点在电子?