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

Tabs - Changing from ng-class + display:none to ng-if - #6479

Open
picheli20 wants to merge 1 commit into
angular-ui:masterfrom
picheli20:master
Open

Tabs - Changing from ng-class + display:none to ng-if#6479
picheli20 wants to merge 1 commit into
angular-ui:masterfrom
picheli20:master

Conversation

@picheli20

Copy link
Copy Markdown

When we are using same directive inside the tab (for exemple angular-ellipsis) which needs to do same DOM manipulation, the ng-class with display:none; compiles the JS code without a HTML.

Changing to ng-if we make the "directives" be activated when the user enter in the tab, not in the page.

Comment thread template/tabs/tabset.html Outdated
@@ -3,8 +3,9 @@
<div class="tab-content">
<div class="tab-pane"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be class="tab-pane active", otherwise the content won't show

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost forgot.
Tks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants