Diable a menu item in ion-side-menu


#1

I have 6 items in my menu. I want to diable and enable a menu item as programatically. How to do this?
A part of my code is given.

Menu

            <a ui-sref="tab.account" menu-toggle="left" nav-clear class="item">
              <i class="ion-person tab-option" style="color: #33cd5f">
              </i>
                Account
            </a>
            <a ui-sref="notifications" menu-toggle="left" nav-clear class="item">
              <i class="ion-android-notifications tab-option" style="color: #33cd5f">
              </i>
                Notifications
            </a>
            
            <a ui-sref="#" menu-toggle="left" nav-clear class="item">
              <i class="ion-ios-information tab-option" style="color: #33cd5f">
              </i>
                Help
            </a>
        </ul>
  </ion-content>
</ion-side-menu>

I want to disable Account item when the user has skipped Login with google. I know that can be achieved with simple logic. I tried ng-show=“false” on an item, and the entire menu was invisible. So help guys! Thank Ya all…


#2

Try this Plunker: http://plnkr.co/edit/pGwucVrTBDxSvw6z092h?p=preview

<ion-item menu-close ui-sref="app.browse" ng-show="false">
      Browse
</ion-item>

Ref: