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() {
99 attrfoo : '@' ,
1010 attrbar : '@'
1111 } ,
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' ,
1713
1814 link : function ( scope ) {
1915 scope . isContentVisible = false ;
@@ -24,7 +20,7 @@ app.directive('zippy', function() {
2420 } ;
2521
2622 scope . myFunc = function ( ) {
27- console . log ( 'myfunct Fired' )
23+ console . log ( 'myfunct Fired' ) ;
2824 } ;
2925 }
3026 } ;
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