Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.
This repository was archived by the owner on May 4, 2022. It is now read-only.

$ionicTabsDelegate does not work when use it at ion-side-menus in ion-tabs #117

Open
@jgw96

Description

@jgw96

From @yyuna on June 29, 2016 5:17

$ionicTabsDelegate does not work when use it at ion-side-menus in ion-tabs

ionic version.json:

{
"version": "1.3.1",
"codename": "el salvador",
"date": "2016-05-12",
"time": "18:21:10"
}

Sample:

  .state 'app',
    url: '/app'
    abstract: true
    templateUrl: 'templates/tabs.html'
    controller: 'AppCtrl'

  .state 'app.menu',
    url: '/menu'
    abstract: true
    views: 'menu':
      templateUrl: 'templates/tab-menu.html'
      controller: 'MenuCtrl'

  .state 'app.menu.home',
    url: '/home'
    views: 'home':
      templateUrl: 'templates/menu-home.html'
      controller: 'HomeCtrl'

The 'app' is a ion-tabs, the 'app.menu' is ion-side-menus, the 'app.menu.home' is a ion-view in ion-side-menu-content.

.controller 'AppCtrl', ($scope, $ionicTabsDelegate, $state)->
  $scope.$on '$ionicView.afterEnter', ()->
    $ionicTabsDelegate.showBar(false)  # it does not work !!!
  return

The tabs do not hide...

.controller 'AppCtrl', ($scope, $ionicTabsDelegate, $state)->
  $scope.$on '$ionicView.afterEnter', ()->
    $ionicTabsDelegate.$getByHandle('tabs-handle').showBar(false)  #  Get warning:  Delegate for handle "tabs-handle" could not find a corresponding element with delegate-handle="tabs-handle"! showBar() was not called!
  return

Get warning:
Delegate for handle "tabs-handle" could not find a corresponding element with delegate-handle="tabs-handle"! showBar() was not called!

Copied from original issue: ionic-team/ionic-framework#7110

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions