Ionic framework 为什么标题没有显示在ion导航栏上?

Ionic framework 为什么标题没有显示在ion导航栏上?,ionic-framework,Ionic Framework,我有一个离子导航栏,在登录/登录过程中隐藏。登录后,我在底部有选项卡,导航栏在顶部。可以看到ion导航栏,但标题没有显示任何内容。我做错了什么?任何帮助都将不胜感激 index.html <body ng-app="mychat"> <!-- The nav bar that will be updated as we navigate between views. --> <ion-nav-bar class="bar-header bar-assertive"&

我有一个离子导航栏,在登录/登录过程中隐藏。登录后,我在底部有选项卡,导航栏在顶部。可以看到ion导航栏,但标题没有显示任何内容。我做错了什么?任何帮助都将不胜感激

index.html

<body ng-app="mychat">
<!--
The nav bar that will be updated as we navigate between views.
-->
<ion-nav-bar class="bar-header bar-assertive">
<ion-nav-back-button>
</ion-nav-back-button>
</ion-nav-bar>
<!--
The views will be rendered in the <ion-nav-view> directive below
Templates are in the /templates folder (but you could also
have templates inline in this html file if you'd like).
-->
<ion-nav-view></ion-nav-view>
</body>
tab-home.html

<ion-view title="Home">
<ion-content class="padding">


</ion-content>
</ion-view>
<ion-view view-title="my custom title" >

在tab-home.html中使用“查看标题”属性

<ion-view title="Home">
<ion-content class="padding">


</ion-content>
</ion-view>
<ion-view view-title="my custom title" >

最可能的原因是模板路径不正确。我已经创建了这个JSBin,它只需对
login.html
模板的路径做一些小的调整就可以正常工作


感谢您的回复。我试着查看标题,但栏还是空的,还有其他想法吗?