rev087/ng-inspector
View on GitHub"Controller-As" syntax has different results from older syntax
Open
#130 opened on Aug 11, 2015
bughelp wanted
Description
Older Syntax:
angular.module('TestApp', [])
.controller('SampleCtrl', function($scope) {
$scope.username = 'John Doe';
});
Result:

"Controller-As" syntax:
angular.module('TestApp', [])
.controller('SampleCtrl', function() {
this.username = 'John Doe';
});
Result:
