ionic-team / ionic-team/ionic-cli

Tabs template should set <tabName>Root with page class reference instead of page name string

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

描述

Now the template is like below.

```typescript
export class TabsPage {

tab1Root = 'Tab1Page' // Look here
tab2Root = 'Tab2Page'
tab3Root = 'Tab3Page'

constructor(public navCtrl: NavController) { }

}
```

This causes url problem on desktop browser. When the first tab is selected, the url will be changed to something like `http://localhost:8101/#/tab1`. I spend hours to find out the solution: change `'Tab1Page'` to `Tab1Page` and import the class.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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