Change tab title of ion-nav-bar to image


#1

Hello there, I’m trying to change the title of a tab to an image (forked a codepen). I read some topics on the forum but I can’t manage how to figure it out. Tried this one but had no luck at all. I’m on beta 10 so I don’t think there should be any issues since i read it was fixed in previous versions.

<nav-page ng-controller="AppCtrl" title="myTitle">
</nav-page>

app.controller('AppCtrl', function($scope) {
  $scope.myTitle = '<img src="path/to/image.jpeg">';
});

#2

you forgot to add the {{ }} around mytitle.

  <ion-view title="{{myTitle}}">

#3

Yes that worked! I was also able to do this:

  <ion-view title='<img src="path/to/image.jpeg">'>

(Note the single quotes on title.)