ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: view-title not showed when async

Open gio82 opened this issue 11 years ago • 5 comments

Type: bug

Platform: ios 8 webview

I'm using beta 14 At the moment only on iOS simulator

The view-title of a detailed view is not showed when I first load the page.

<ion-view view-title="{{item.name}}">

where item is available only after a $http request.

If I switch page on another tab button and the come back on the item page. That is now already loaded. Then the view-title appears.

So it seems that view-title does not support async titles. With beta 13 all was fine.

gio82 avatar Dec 19 '14 11:12 gio82

Have you tried giving it into the <ion-nav-title> directive?

bobalazek avatar Dec 22 '14 19:12 bobalazek

Just tried and using <ion-nav-title> fix the issue. Thanks @bobalazek !

gio82 avatar Dec 22 '14 19:12 gio82

Hey @gio82, glad you got your code working. Feel free to reopen if you're still running into any problems.

drewrygh avatar Dec 24 '14 22:12 drewrygh

Thanks @drewrygh, yes I did resolved my issue using <ion-nav-title>. I think this as a workaround though. If don't fixed, I think, it should be at least documented that view-title is no more able to manage async titles.

gio82 avatar Dec 25 '14 07:12 gio82

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 06 '18 18:09 ionitron-bot[bot]