Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49120

Modifying bar-header in ion-nav-view

$
0
0

@bl4ckdu5t wrote:

I'd just generated a sidebar ion template and I have ion-nav-view that sets title for pages with the view-title attribute.

<ion-view view-title="Playlists">
  <ion-content>
    <ion-list>
      <ion-item ng-repeat="playlist in playlists" href="#/app/playlists/{{playlist.id}}">
        {{playlist.title}}
      </ion-item>
    </ion-list>
  </ion-content>
</ion-view>

After searching around I found the ion-nav-title docs. I tried to take out the view-title attribute and have this in ion-content instead:

<ion-nav-title>
      <img src="logo.svg" alt="Show Something please!!!">
</ion-nav-title>

I also tried without the image and just the text in ion-nav-title but it wouldn't work for me. How can I modify the bar-header such that I can add icons or images to it?
I've also followed this pen from this topic but it didn't solve my problem

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>