akveo / akveo/nebular

How to set state variable in nb route tabset to send additional parameters to another component

未关闭
#2,491 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
8.1k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

描述

> ` Below is my code attached and need to add state variable to route. How can I do this. Please help.
this.tabs = [
{
title: 'Summary',
route: 'patient-summary/' + id,
},
{
title: 'Timeline',
route: 'timeline',
},
{
title: 'History',
route: 'history/'+ id,state:{hello:'hello123'}

},
{
title: 'Consult',
route: 'consult',
},
];

### Issue type

**I'm submitting a ...** (check one with "x")

* [ ] bug report
* [ ] feature request

### Issue description

**Current behavior:**

**Expected behavior:**

**Steps to reproduce:**

**Related code:**

```
insert short code snippets here
```

### Other information:

**npm, node, OS, Browser**
```

```

**Angular, Nebular**
```

```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。