Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Commit bdaa6b1

Browse files
author
Axel Peter
committed
style(oui-tabs): code review
1 parent 5f63458 commit bdaa6b1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/oui-tabs/src/item/tabs-item.controller.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ export default class {
3535

3636
this.hasCheckmark = angular.isDefined(this.$attrs.checked);
3737

38-
if (this.tabsCtrl) {
39-
// Add item to parent oui-tabs and give node index
40-
// To support ngIf directive, which delay the adding
41-
this.tabsCtrl.addItem(this, this.getNodeIndex());
42-
}
43-
4438
// Watch if hidden
4539
this.$scope.$watch(
4640
() => this.tabsCtrl.activeId,
@@ -60,5 +54,11 @@ export default class {
6054
this.$timeout(() =>
6155
this.$element.addClass("oui-tabs-item")
6256
);
57+
58+
if (this.tabsCtrl) {
59+
// Add item to parent oui-tabs and give node index
60+
// To support ngIf directive, which delay the adding
61+
this.tabsCtrl.addItem(this, this.getNodeIndex());
62+
}
6363
}
6464
}

0 commit comments

Comments
 (0)