@@ -39,7 +39,7 @@ angular.module('app', [])
3939 return {
4040 compile : function ( $element , $attrs ) {
4141 var expr = $parse ( $attrs . attr0 ) ;
42- return function ( $scope ) { $scope . $watch ( expr , angular . noop ) ; }
42+ return ( $scope ) => $scope . $watch ( expr , angular . noop ) ;
4343 }
4444 } ;
4545 }
@@ -51,7 +51,7 @@ angular.module('app', [])
5151 return {
5252 compile : function ( $element , $attrs ) {
5353 var expr = $parse ( $attrs . attr1 ) ;
54- return function ( $scope ) { $scope . $watch ( expr , angular . noop ) ; }
54+ return ( $scope ) => $scope . $watch ( expr , angular . noop ) ;
5555 }
5656 } ;
5757 }
@@ -63,7 +63,7 @@ angular.module('app', [])
6363 return {
6464 compile : function ( $element , $attrs ) {
6565 var expr = $parse ( $attrs . attr2 ) ;
66- return function ( $scope ) { $scope . $watch ( expr , angular . noop ) ; }
66+ return ( $scope ) => $scope . $watch ( expr , angular . noop ) ;
6767 }
6868 } ;
6969 }
@@ -75,7 +75,7 @@ angular.module('app', [])
7575 return {
7676 compile : function ( $element , $attrs ) {
7777 var expr = $parse ( $attrs . attr3 ) ;
78- return function ( $scope ) { $scope . $watch ( expr , angular . noop ) ; }
78+ return ( $scope ) => $scope . $watch ( expr , angular . noop ) ;
7979 }
8080 } ;
8181 }
@@ -87,7 +87,7 @@ angular.module('app', [])
8787 return {
8888 compile : function ( $element , $attrs ) {
8989 var expr = $parse ( $attrs . attr4 ) ;
90- return function ( $scope ) { $scope . $watch ( expr , angular . noop ) ; }
90+ return ( $scope ) => $scope . $watch ( expr , angular . noop ) ;
9191 }
9292 } ;
9393 }
0 commit comments