This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ AngularJS version of the tabs directive.
12
12
_ (Defaults: 'tabs')_ :
13
13
Navigation type. Possible values are 'tabs' and 'pills'.
14
14
15
+ * ` direction `
16
+ _ (Defaults: null)_ :
17
+ What direction the tabs should be rendered. Available: 'right', 'left', 'below'.
18
+
15
19
#### ` <tab> ` ####
16
20
17
21
* ` heading ` or ` <tab-heading> `
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ function TabsetCtrl($scope, $element) {
85
85
templateUrl : 'template/tabs/tabset.html' ,
86
86
compile : function ( elm , attrs , transclude ) {
87
87
return function ( scope , element , attrs , tabsetCtrl ) {
88
- scope . vertical = angular . isDefined ( attrs . vertical ) ? scope . $eval ( attrs . vertical ) : false ;
88
+ scope . vertical = angular . isDefined ( attrs . vertical ) ? scope . $parent . $ eval( attrs . vertical ) : false ;
89
89
scope . type = angular . isDefined ( attrs . type ) ? scope . $parent . $eval ( attrs . type ) : 'tabs' ;
90
90
scope . direction = angular . isDefined ( attrs . direction ) ? scope . $parent . $eval ( attrs . direction ) : 'top' ;
91
91
scope . tabsAbove = ( scope . direction != 'below' ) ;
Original file line number Diff line number Diff line change @@ -468,8 +468,8 @@ describe('tabs', function() {
468
468
describe ( 'vertical' , function ( ) {
469
469
beforeEach ( inject ( function ( $compile , $rootScope ) {
470
470
scope = $rootScope . $new ( ) ;
471
-
472
- elm = $compile ( '<tabset vertical="true "></tabset>' ) ( scope ) ;
471
+ scope . vertical = true ;
472
+ elm = $compile ( '<tabset vertical="vertical "></tabset>' ) ( scope ) ;
473
473
scope . $apply ( ) ;
474
474
} ) ) ;
475
475
You can’t perform that action at this time.
0 commit comments