Skip to content

Commit fdcca7d

Browse files
committed
Removed vm from LandingController code
1 parent bae164f commit fdcca7d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
export class LandingController {
22
constructor() {
3-
var vm = this;
3+
'ngInject';
44

5-
vm.laravel_description = 'Response macros integrated with your Angular app';
6-
vm.angular_description = 'Query your API without worrying about validations';
5+
this.laravel_description = 'Response macros integrated with your Angular app';
6+
this.angular_description = 'Query your API without worrying about validations';
77

88
/*
99
This is a terrible temporary hack,
1010
to fix layout issues with flex on iOS (chrome & safari)
1111
Make sure to remove this when you modify this demo
1212
*/
13-
vm.iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
13+
this.iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
1414
}
1515
}

public/js/app.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,19 +145,19 @@
145145
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
146146

147147
var LandingController = exports.LandingController = function LandingController() {
148-
_classCallCheck(this, LandingController);
148+
'ngInject';
149149

150-
var vm = this;
150+
_classCallCheck(this, LandingController);
151151

152-
vm.laravel_description = 'Response macros integrated with your Angular app';
153-
vm.angular_description = 'Query your API without worrying about validations';
152+
this.laravel_description = 'Response macros integrated with your Angular app';
153+
this.angular_description = 'Query your API without worrying about validations';
154154

155155
/*
156156
This is a terrible temporary hack,
157157
to fix layout issues with flex on iOS (chrome & safari)
158158
Make sure to remove this when you modify this demo
159159
*/
160-
vm.iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
160+
this.iOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
161161
};
162162

163163
/***/ },

0 commit comments

Comments
 (0)