angular/angular.js — pull request #3115 by damrbaby (2013-07-02 19:44:25+00:00)
Title: feat(ngForm): evaluate form name against scope

Now it is possible to access a form from a controller using the new `controller as` syntax, without having to access `$scope`:

Old way:
```html

```
...
```javascript
.controller('MainCtrl', function($scope) {
this.submit = function() {
if $scope.form.$valid {
// do something!
}
}
})
```

New way:
```html

```
...
```javascript
.controller('MainCtrl', function() {
this.submit = function() {
if this.form.$valid {
// do something!
}
}
})
```