Just see the code
var angApp = angular.module('angApp',[]);  
angApp.controller('testController', ['$http', function ($http) {  
    var self = this;  
    self.name ='Hello';  
    self.btnClick=function(){  
        self.name ='Hello! Button Clicked';  
    }  
}]);  
<html>  
<head>  
</head>  
<body data-ng-app="angApp" data-ng-controller="testController as model">  
<div>  
    {{model.name}}  
    </br>  
    <input type="button" value="Click" data-ng-click="model.btnClick();"/>  
</div>  
</html>  
Now, tell me if we avoid scope and declare controller like this way testController as model then what will be an advantage or is it only syntactic sugar?
 
     
     
     
    