# Title update bug?

**URL:** <https://forum.ionicframework.com/t/title-update-bug/15017>\
**Category:** ionic-v1\
**Created:** [January 2, 2015, 5:47pm UTC](https://forum.ionicframework.com/t/title-update-bug/15017 "2015-01-02T17:47:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![RangerRick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rangerrick/32/8163_2.png) [@RangerRick](https://forum.ionicframework.com/u/RangerRick)\
**Post date:** [January 2, 2015, 5:47pm UTC](https://forum.ionicframework.com/t/title-update-bug/15017/1 "2015-01-02T17:47:29Z")

</div>

I have a codepen here: [http://codepen.io/RangerRick/details/NPbrLP/](http://codepen.io/RangerRick/details/NPbrLP/)

If you click between the “official” and “unofficial” tabs, the title updates fine. Then click “other” and the title changes to “Other”, but if you click back on “Events” the title remains “Other” rather than switching to the title of the tab’s view. Am I doing something wrong, or is this a bug?

---

<div class="post-metadata">

**Author:** ![ItamarCohen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/itamarcohen/32/115653_2.png) [@ItamarCohen](https://forum.ionicframework.com/u/ItamarCohen)\
**Post date:** [January 2, 2015, 8:56pm UTC](https://forum.ionicframework.com/t/title-update-bug/15017/2 "2015-01-02T20:56:20Z")

</div>

hi,  
the easy thing to do is to add ion-view tag before the ion-tabs with a title of the first tab that is loaded.

---

<div class="post-metadata">

**Author:** ![RangerRick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rangerrick/32/8163_2.png) [@RangerRick](https://forum.ionicframework.com/u/RangerRick)\
**Post date:** [January 3, 2015, 11:01pm UTC](https://forum.ionicframework.com/t/title-update-bug/15017/3 "2015-01-03T23:01:49Z")

</div>

That still doesn’t actually fix the bug though. If I do that, I occasionally get the hardcoded title (which is wrong depending on which tab you’ve selected).

---

<div class="post-metadata">

**Author:** ![ItamarCohen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/itamarcohen/32/115653_2.png) [@ItamarCohen](https://forum.ionicframework.com/u/ItamarCohen)\
**Post date:** [January 4, 2015, 8:45am UTC](https://forum.ionicframework.com/t/title-update-bug/15017/4 "2015-01-04T08:45:06Z")

</div>

hi ,

check this codepan:

[http://codepen.io/itamarCohen/pen/zxoPYq?editors=101](http://codepen.io/itamarCohen/pen/zxoPYq?editors=101)

---

<div class="post-metadata">

**Author:** ![RangerRick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rangerrick/32/8163_2.png) [@RangerRick](https://forum.ionicframework.com/u/RangerRick)\
**Post date:** [January 4, 2015, 4:17pm UTC](https://forum.ionicframework.com/t/title-update-bug/15017/5 "2015-01-04T16:17:36Z")

</div>

Right, so on your codepen, do this:

1. “Events” is selected by default on the left, “Official” tab is selected by default
2. Click “Unofficial”, the view changes to “Unofficial” and the title changes to “Unofficial”
3. Click “Other”, the view changes to “Other” and the title changes to “Other”
4. Click “Events”, the view changes to “Unofficial” (and the “Unofficial” tab is selected) **_but the title is now "Official"_**

That’s still broken.

---

<div class="post-metadata">

**Author:** ![ItamarCohen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/itamarcohen/32/115653_2.png) [@ItamarCohen](https://forum.ionicframework.com/u/ItamarCohen)\
**Post date:** [January 4, 2015, 6:42pm UTC](https://forum.ionicframework.com/t/title-update-bug/15017/6 "2015-01-04T18:42:01Z")

</div>

ok , just remove the title attr from the ion-view.  
i updated the codepan

---

<div class="post-metadata">

**Author:** ![ItamarCohen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/itamarcohen/32/115653_2.png) [@ItamarCohen](https://forum.ionicframework.com/u/ItamarCohen)\
**Post date:** [January 5, 2015, 7:45am UTC](https://forum.ionicframework.com/t/title-update-bug/15017/7 "2015-01-05T07:45:27Z")

</div>

@RangerRick,

now its Ok ?!  
i solve your problem?

---

<div class="post-metadata">

**Author:** ![RangerRick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rangerrick/32/8163_2.png) [@RangerRick](https://forum.ionicframework.com/u/RangerRick)\
**Post date:** [January 5, 2015, 1:48pm UTC](https://forum.ionicframework.com/t/title-update-bug/15017/8 "2015-01-05T13:48:54Z")

</div>

Aha, you’re right! Looks like that’s a good workaround.

---

<div class="post-metadata">

**Author:** ![RangerRick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rangerrick/32/8163_2.png) [@RangerRick](https://forum.ionicframework.com/u/RangerRick)\
**Post date:** [January 5, 2015, 1:55pm UTC](https://forum.ionicframework.com/t/title-update-bug/15017/9 "2015-01-05T13:55:45Z")

</div>

Hrm, actually, so it fixes that codepen, but in my real-world app with more views and more menu items, it still breaks. I wonder if it’s some kind of race condition.

---

<div class="post-metadata">

**Author:** ![ItamarCohen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/itamarcohen/32/115653_2.png) [@ItamarCohen](https://forum.ionicframework.com/u/ItamarCohen)\
**Post date:** [January 5, 2015, 2:14pm UTC](https://forum.ionicframework.com/t/title-update-bug/15017/10 "2015-01-05T14:14:58Z")

</div>

i use ionic beta 14 ,  
with a **lot** of views and menu items and its work great.  
make sure that you have ion-view tag in each view.

---

<div class="post-metadata">

**Author:** ![RangerRick](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rangerrick/32/8163_2.png) [@RangerRick](https://forum.ionicframework.com/u/RangerRick)\
**Post date:** [January 5, 2015, 4:34pm UTC](https://forum.ionicframework.com/t/title-update-bug/15017/11 "2015-01-05T16:34:55Z")

</div>

Yeah, I’ve had 0 problems until I tried to put a `ion-tabs` inside a view. This specifically seems to be broken.

---

<div class="post-metadata">

**Author:** ![ItamarCohen](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/itamarcohen/32/115653_2.png) [@ItamarCohen](https://forum.ionicframework.com/u/ItamarCohen)\
**Post date:** [January 5, 2015, 4:46pm UTC](https://forum.ionicframework.com/t/title-update-bug/15017/12 "2015-01-05T16:46:59Z")

</div>

i also use tabs in the ion-view and its works great

also try to direct the ui-sref to a specific tab like: ui-sref=“app.events.official”
