Probleme Ionic

Par RaphBellahsen, il y a 11 ans


Bonjour ayant fini l'objectif de mon application que je dois rendre a la fin du mois dans le cadre de mon programme d'ISN , j'ai attaque l'interface graphique avec ionic.

Me voila face a un probleme , je comprend pas d'ou sortent les href et mon code ne me renvoie vers aucune de mes page HTML:

<ion-nav-view> <!-- Create tabs with an icon and label, using the tabs-positive style. Each tab's child <ion-nav-view> directive will have its own navigation history that also transitions its views in and out. --> <ion-tabs class="tabs-icon-top tabs-color-active-positive"> <!-- Home Tab --> <ion-tab title="Home" icon-off="ion-ios-home" icon-on="ion-ios-home" href="home.html"> <ion-nav-view name="tab-home"></ion-nav-view> </ion-tab> <!-- About Tab --> <ion-tab title="About" icon-off="ion-ios-information-outline" icon-on="ion-ios-information" href="about.html"> <ion-nav-view name="tab-about"></ion-nav-view> </ion-tab> </ion-tabs> </ion-nav-view>

J'imagine que le pb vient du code js mais comment niveau angular je maitrise presque rien :/

Merci de votre temps :)

3 réponses

shinix, il y a 11 ans

Salut,
Vu que c'est des tabs il me semble qu'avec ionic tu n'as pas besoin de créer plusieurs controller mais tu gères tout depuis le même controller. Il te suffit de créer un ng-template portant le nom de ton lien.

Un exemple ici : http://codepen.io/ionic/pen/odqCz

Grafikart, il y a 11 ans

dans ton href il faut un #/ non ?

shinix, il y a 11 ans

@graf : nop vu qu'il utilise le système de tabs tout s'affiche dans la même view.