Before formatting
'use strict';
angular.module('main')
.controller('LoginCtrl', function (
this.foo = 'bar';
Service.myPromiseFunction()
.then(function () {
console.log('Service function done');
});
));
After default VSCode formatting (ALT+SHIFT+F)
'use strict';
angular.module('main')
.controller('LoginCtrl', function (
this.foo = 'bar';
Service.myPromiseFunction()
.then(function () {
console.log('Service function done');
});
));
How it should
be? Without changes from original code.