Skip to content

Commit 86daad5

Browse files
committed
fix es6 injection as ng annotate fail to catch it
1 parent 603bb08 commit 86daad5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
'use strict';
22
/*jshint esnext: true */
33

4-
export default class MainCtrl {
4+
class MainCtrl {
55
constructor ($scope) {
66
$scope.awesomeThings = <%= technologies %>;
77
$scope.awesomeThings.forEach(function(awesomeThing) {
88
awesomeThing.rank = Math.random();
99
});
1010
}
1111
}
12+
13+
MainCtrl.$inject = ['$scope'];
14+
15+
export default MainCtrl;
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
'use strict';
22
/*jshint esnext: true */
33

4-
export default class NavbarCtrl {
4+
class NavbarCtrl {
55
constructor ($scope) {
66
$scope.date = new Date();
77
}
88
}
9+
10+
NavbarCtrl.$inject = ['$scope'];
11+
12+
export default NavbarCtrl;

0 commit comments

Comments
 (0)