Skip to content

Commit 0e4fd50

Browse files
committed
Merge pull request #949 from mohsen1/master
Use arrow function in activate method of main.controller.ts template
2 parents 6af8166 + c7f6c95 commit 0e4fd50

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ export class MainController {
2121
activate($timeout: angular.ITimeoutService) {
2222
this.getWebDevTec();
2323

24-
var self = this;
25-
26-
$timeout(function() {
27-
self.classAnimation = 'rubberBand';
24+
$timeout(()=> {
25+
this.classAnimation = 'rubberBand';
2826
}, 4000);
2927
}
3028

0 commit comments

Comments
 (0)