Pages

Monday, 10 August 2015

How to add App LOGO in header using ionic framework

Just Follow these steps:-

  1. <ion-view> in top assign the .PNG image to the attribute title 
Here is the complete code.

    HTML

<ion-view title="navTitle">

Angularjs

$scope.navTitle='<img class="title-image" src="images/img.png" />';
 

CSS 

.title-image {
    margin-top: 8px;
    height: 27px;
}
Njoy till then keep asking..

 

No comments:

Post a Comment