hi, i start with ionic start tabs,
my code:
tabs.html:
<!-- jeu-->
<ion-tab title="Jouer"
icon-off="ion-ios-home-outline"
icon-on="ion-ios-home" href="#/tab/jouer"
on-select="log()"
>
<ion-nav-view name="tab-jouer" ></ion-nav-view>
</ion-tab>
<!-- ajout de joueur -->
<ion-tab title="Equipe" icon-off="ion-ios-personadd-outline" icon-on="ion-ios-personadd" href="#/tab/joueurs">
<ion-nav-view name="tab-joueurs"></ion-nav-view>
</ion-tab>
</ion-tabs>
app.js:
.state('tab.jouer', {
url: '/jouer',
cache: false,
views: {
'tab-jouer': {
templateUrl: 'templates/tab-jouer.html',
controller: 'JouerCtrl'
}
}
})
my controler
.controller(‘JouerCtrl’, function($scope) {
$scope.log = function(){
console.log(“here”);
alert(“kkk”);
}
the tab show the good view
but when i click on my tab ‘jouer’, nothing append??, i never arriev in tmy fonction log (in debug)