This repository was archived by the owner on May 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ function TabsetCtrl($scope, $element) {
80
80
return {
81
81
restrict : 'EA' ,
82
82
transclude : true ,
83
+ replace : true ,
83
84
scope : { } ,
84
85
controller : 'TabsetController' ,
85
86
templateUrl : 'template/tabs/tabset.html' ,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ describe('tabs', function() {
36
36
scope . selectSecond = jasmine . createSpy ( ) ;
37
37
elm = $compile ( [
38
38
'<div>' ,
39
- ' <tabset>' ,
39
+ ' <tabset class="hello" data-pizza="pepperoni" >' ,
40
40
' <tab heading="First Tab {{first}}" active="actives.one" select="selectFirst()">' ,
41
41
' first content is {{first}}' ,
42
42
' </tab>' ,
@@ -51,6 +51,12 @@ describe('tabs', function() {
51
51
return elm ;
52
52
} ) ) ;
53
53
54
+ it ( 'should pass class and other attributes on to tab template' , function ( ) {
55
+ var tabbable = elm . find ( '.tabbable' ) ;
56
+ expect ( tabbable ) . toHaveClass ( 'hello' ) ;
57
+ expect ( tabbable . attr ( 'data-pizza' ) ) . toBe ( 'pepperoni' ) ;
58
+ } ) ;
59
+
54
60
it ( 'should create clickable titles' , function ( ) {
55
61
var t = titles ( ) ;
56
62
expect ( t . length ) . toBe ( 2 ) ;
You can’t perform that action at this time.
0 commit comments