Skip to content

Hidden tab attribute for ion-tab elements #1666

@ducdigital

Description

@ducdigital

This will help people able to implement both side-menu and ion-tabs at once.

In the file: ** js / angular / directive / tab.js **

Change:

tabsCtrl.$tabsElement.append($compile(tabNavElement)($scope));

to

if ($attr.hidden !== 'true') { tabsCtrl.$tabsElement.append($compile(tabNavElement)($scope)); }

This allow a hidden="true" attribute in the ion-tab element. It will hide the button but view/controller will continue to works as normal. We can access it by route or other mean like a normal tab.

I hope we can implement this if there are no problem :)

Metadata

Metadata

Assignees

Labels

needs: replythe issue needs a response from the user

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions