Skip to content

Commit 0e4b877

Browse files
committed
Make class definition a single statement
1 parent 8565aff commit 0e4b877

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/app/app.controller.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
class AppCtrl {
1+
export default class AppCtrl {
22
constructor(Generic) {
33
this.url = 'https://github.com/suvsoob/angularjs-webpack';
44
this.greetingText = 'Hello from Angular!';
55
this.serviceName = Generic.getName();
66
}
7-
}
8-
9-
export default AppCtrl;
7+
};

src/app/generic.service.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
class Generic {
1+
export default class Generic {
22
constructor() {
33
this.name = 'Generic Service';
44
}
55

66
getName() {
77
return this.name;
88
}
9-
}
10-
11-
export default Generic;
9+
};

0 commit comments

Comments
 (0)