rev087/ng-inspector
Vedi su GitHub"Controller-As" syntax has different results from older syntax
Open
#130 aperta il 11 ago 2015
bughelp wanted
Metriche repository
- Star
- (787 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
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:
