如何参数路由到一个角电子应用中添加?

时间:2019-02-02 21:40:02

标签: angularjs google-cloud-firestore electron angularfire2

我想在我的角电子应用程序中添加路由,使我能够像在角路由中一样通过路由传递数据。

const routes: Routes = [
  {
    path: 'templates',
    component: TemplatesComponent
  },
  {
    path: 'templates/:id/questions/data',
    component: TemplateDataComponent
  },
  {
    path:'templates/:id/questions',
    component: QuestionsComponent
  }
];

我怎样才能做到这一点在电子?

0 个答案:

没有答案