We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8565aff commit 0e4b877Copy full SHA for 0e4b877
src/app/app.controller.js
@@ -1,9 +1,7 @@
1
-class AppCtrl {
+export default class AppCtrl {
2
constructor(Generic) {
3
this.url = 'https://github.com/suvsoob/angularjs-webpack';
4
this.greetingText = 'Hello from Angular!';
5
this.serviceName = Generic.getName();
6
}
7
-}
8
-
9
-export default AppCtrl;
+};
src/app/generic.service.js
@@ -1,11 +1,9 @@
-class Generic {
+export default class Generic {
constructor() {
this.name = 'Generic Service';
getName() {
return this.name;
10
11
-export default Generic;
0 commit comments