javascript - Tab transitions within Modal (Ionic) -


i need open modal, displays page uses tab style of transitioning between pages.

i cannot browse between links within modal (without closing modal). want create tab-like transition between tabs in modal.

for links close modal, use closemodal(). works on browser on devices, must use ionic's native href behaviour over-rides closemodal():

<a href="#/storeshop/{{stores[i].id}}" ng-click="closemodal()"> 

here

$ionicmodal.fromtemplateurl('app/components/stores/stores.html', {     scope: $scope,     animation: 'slide-in-up' }).then(function(modal) {     $scope.modal = modal; });  $scope.refineevent = function() {     $scope.modal.show(); };  $scope.closemodal = function() {     $scope.modal.hide(); };      $scope.$on('modal.shown', function() {     console.log('modal shown!'); }); 

my html:

<ion-modal-view> <ion-view name="stores"><ion-pane ng-controller="storesctrl">          <ion-content class="has-header">   ...         </ion-content>     <div class="faketab">     <table>         <tr>             <td><a href="stores">store directory</a></td>             <td><a href="stylsts">stylist</a></td>         </tr>     </table> </div>  </ion-view> </ion-modal-view> 

you should use $state transition new state.

<a ng-click="gotostore(stores[i].id)">        $scope.gotostore= function(storeid)      {        $scope.modal.hide();        $state.go('tab.storeshop',{id:}     };     

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -