ionic-team / ionic-team/ionic-cli

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

Aberta
#3,320 0 comentários 0 reações 0 responsáveis Ver no GitHub
triage
Linguagem predominante
TypeScript
Estrelas
2k
Forks
682
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Locate the generated TabsPage template and inspect the tab1Root, tab2Root, and tab3Root values shown in the issue. Generate a tabs app and check the first tab in a desktop browser; done means the template uses the imported page class references and no longer changes the URL to a string-based route such as #/tab1.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
typescript
Domínio
frontend
Tipo de issue
Bug
Dificuldade
2/5
Tempo estimado
1-3 horas
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
50/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.