File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,7 @@ app.directive('zippy', function() {
9
9
attrfoo : '@' ,
10
10
attrbar : '@'
11
11
} ,
12
- template : '<div>' +
13
- '<h3 ng-click="toggleContent()"> First input is: {{attrfoo}} </h3><br/>' +
14
- 'Second input is: {{attrbar}} <br/>' +
15
- '<div ng-click="myFunc()" ng-show="isContentVisible" ng-transclude> </div>' +
16
- '</div>' ,
12
+ templateUrl : 'templates/zippy_template.html' ,
17
13
18
14
link : function ( scope ) {
19
15
scope . isContentVisible = false ;
@@ -24,7 +20,7 @@ app.directive('zippy', function() {
24
20
} ;
25
21
26
22
scope . myFunc = function ( ) {
27
- console . log ( 'myfunct Fired' )
23
+ console . log ( 'myfunct Fired' ) ;
28
24
} ;
29
25
}
30
26
} ;
Original file line number Diff line number Diff line change
1
+ < div >
2
+ < h3 ng-click ="toggleContent() "> First input is: {{attrfoo}} </ h3 > < br />
3
+ Second input is: {{attrbar}} < br />
4
+ < div ng-click ="myFunc() " ng-show ="isContentVisible " ng-transclude > </ div >
5
+ </ div >
You can’t perform that action at this time.
0 commit comments