angular/angular.js — pull request #2273 by vojtajina (2013-04-01 19:57:08+00:00)
Title: feat(controller): support as instance syntax

Support ng-controller="MyController as my" syntax
which publishes the controller instance to the
current scope.

Also supports exporting a controller defined with route:
````javascript
angular.module('routes', [], function($routeProvider) {
$routeProvider.when('/home', {controller: 'Ctrl as home', templateUrl: '...'});
});
````

## I think we should change the docs to recommend only single way of doing this.