Skip to content

Commit e5f9312

Browse files
committed
Merge pull request #206 from Swiip/jsPreproE2ETests
ngAnnotate fix for jsPreprocessors
2 parents 64bcd2e + 220bdca commit e5f9312

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

app/templates/gulp/_server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ gulp.task('serve:dist', ['build'], function () {
5050
});
5151

5252
gulp.task('serve:e2e', ['wiredep', 'injector:js', 'injector:css'], function () {
53-
browserSyncInit(['src', '.tmp'], null, []);
53+
browserSyncInit(['.tmp', 'src'], null, []);
5454
});
5555

5656
gulp.task('serve:e2e-dist', ['build'], function () {
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;

app/templates/src/app/main/_main.controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module <%= appName %> {
1919
}
2020

2121
export class MainCtrl {
22+
/* @ngInject */
2223
constructor ($scope: IMainScope) {
2324
var awesomeThings = <%= technologies %>;
2425

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;

app/templates/src/components/navbar/_navbar.controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module <%= appName %> {
77
}
88

99
export class NavbarCtrl {
10+
/* @ngInject */
1011
constructor ($scope: INavbarScope) {
1112
$scope.date = new Date();
1213
}

0 commit comments

Comments
 (0)