Image in <ion-view>


#1

Hello,
I need to insert a logo to replace the text title in

<ion-view title=''>

I allready view some topics but never worked 100% for my case…

My html code:

<ion-view title = '{{title}}'>

  <ion-nav-buttons side="left">
    <button menu-toggle="left" class="button button-icon icon ion-navicon"></button>
  </ion-nav-buttons>
  <ion-content class="has-header">
...

My controllers.js

.controller('MainCtrl', function($scope, $ionicSideMenuDelegate) {
$scope.title = '<img src="img/logo.png"/>';

$scope.toggleLeft = function() {
  $ionicSideMenuDelegate.toggleLeft();
    };

})

Thanks for the help!!


#2

Have tried this?

http://codepen.io/mhartington/pen/vkdgm

  $ionicNavBarDelegate.setTitle('<img src="http://placehold.it/40x40">')

#3

It’s working now!

Thank you for the precious help mhartington!!