ionic-team / ionic-team/ionic-cli

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

Aperta
#3,320 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
triage
Lingua principale
TypeScript
Stelle
2k
Fork
682
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.