Use RouterLink in CustomEditorComponent
- 主要语言
- TypeScript
- 星标
- 1.6k
- 派生
- 867
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi,
Thanks to your example, I am able to create a custom editor (https://github.com/akveo/ng2-smart-table/blob/master/src/app/pages/examples/custom-edit-view/custom-editor.component.ts). However, the editor is having anchor tag and redirects the user. What I want to do is use RouterLink instead of anchor tag, but somehow, am not able to do so.
As per my understanding, inside the component,
`this.cell.newValue = `a href='${href}'>${name}`;`
This is the line that decides what has to be shown on the UI. I modified this, and instead of using 'href', put routerLink, as below:
`this.cell.newValue = `a routerLink='${href}'>${name}`;`
My understanding was that this will change href to routerLink, but didn't happen that way. I also tried adding dummy text here, in the name variable, but the values didn't reflect on the page.
Can you help me in understanding what I am missing here?
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。