I have a problem, i have a code that I have displayed item which lead me to a page where shows detail of each item but this page does not show me the " ion -tab "
Any help
Thank You
Annex codes:
router:
.config(function($stateProvider, $urlRouterProvider, $ionicConfigProvider){
$ionicConfigProvider.navBar.alignTitle("center");
$stateProvider
.state("app",{
templateUrl: "templates/app.html",
url: "/app",
abstract: true
})
.state("app.noticias", {
url: "/noticias",
views: {
"app-noticias":{
templateUrl: "templates/noticias.html",
controller: "noticiasCtrl"
}
}
})
.state('forgotpassword', {
url: "/forgot-password/:id?tit?bgd?fec?com",
templateUrl: "templates/forgot-password.html"
})
$urlRouterProvider.otherwise("/app/noticias");
})
code:
<ion-view title="Noticias">
<ion-content ng-controller="noticiasCtrl" style="top:0">
<ion-list>
<ion-item ng-repeat="item in rawData.slice(1, n)" class="item-noticias overlay" ng-style="{'background':'url(img/'+item.bg +') no-repeat center', 'background-size':'cover'}">
<div class="overlay" ui-sref="forgotpassword({ id: item.tipo, tit: item.titulo, bgd:item.bgdetail, com:item.com, fec:item.fec })">
<span class="tipo">{{ item.tipo }}</span>
<span class="titulo">{{ item.titulo }}</span>
<span class="link">Leer mas <img src="img/right-arrow.png"></span>
</div>
</ion-item>
</ion-list>
</ion-content>
</ion-view>
Page detail:
<ion-view title="forgotpassword">
<ion-nav-buttons side="left">
<button class="button" ng-click="$ionicGoBack($event)"></button>
</ion-nav-buttons>
<ion-content ng-controller="noticiasCtrl" style="top:0">
<div class="header-image" ng-style="{'background':'url(img/'+bgd +') no-repeat center', 'background-size':'cover'}">
<div class="overlayPrinD">
<div class="overlayPrinSecD">
<span class="tipo">{{ id }}</span>
<span class="titulo">{{ tit }}</span>
</div>
</div>
</div>
<p class="fec">{{ fec }}</p>
<p class="texto">{{ com }}</p>
</ion-content>
</ion-view>