ionic-team / ionic-team/ionic-cli

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

Abierto
#3,320 0 comentarios 0 reacciones 0 asignados Ver en GitHub
triage
Lenguaje dominante
TypeScript
Estrellas
2k
Forks
682
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.