Why is not the subheader displayed?

1

I'm trying to create a search bar, I'm using bar-subheader for this, but it does not display. How to do this?

<ion-view view-title="Empresas">

  <div class="bar bar-subheader item-input-inset padding">
    <label class="item-input-wrapper">
        <i class="icon ion-ios7-search placeholder-icon"></i>
        <input type="search" placeholder="Search" ng-model="pesquisar">
    </label>
  </div>

  <ion-content class="padding has-footer has-subheader">

        <ion-list>      
            <ion-item class="item item-thumbnail-left" 
                  ng-repeat="item in items | filter:pesquisar" 
                  type="item-text-wrap"
                  ng-click="getEmpresa({{item.Empresa.id}})" >

                <img ng-src='{{item.Empresa.imagem}}'>          
                <div style="font-weight:bold;" class="item-text-wrap">{{item.Empresa.nome}}</div>
                <div style="font-size:small" class="item-text-wrap">{{item.Empresa.tipo}}</div>
                <div style="font-size:small">{{item.Empresa.endereco}}</div>
                <div style="font-size:small">{{item.Empresa.telefone}}</div>

                <a href="tel:{{item.Empresa.telefone}}" class="button button-small button-balanced icon ion-ios-telephone">
                </a> 

            </ion-item>
            <ion-infinite-scroll on-infinite="loadMore();" distance="1%" ng-if='!moreData'></ion-infinite-scroll>
       </ion-list>

  </ion-content>

</ion-view>
    
asked by anonymous 22.12.2015 / 21:02

1 answer

0

resolved. The problem was that the subheader I was creating was behind the tabs, so I created a css for that subheader and it worked just fine.

That's how it went.

.search-subheader {
    top:85px;   
}
    
12.01.2016 / 09:59