angular/angular.js — pull request #8406 by gdi2290 (2014-07-30 00:23:14+00:00)
Title: feat(FormController): add $submitted $setSubmitted

allowing $submitted on FormController allows the user more convenience when dealing with ngMessages for example
https://yearofmoo.github.io/ngMessages/
```javascript
angular.module('yolo', ['ngMessages'])
.controller('exampleCtrl', function($scope) {
this.model = '';
$scope.submitted = false;
$scope.submit = function() {
$scope.submitted = true;
};
$scope.interacted = function(field) {
return $scope.submitted || field.$dirty;
};
}
```
```html

```

with $submitted would simply be
```javascript
angular.module('yolo', ['ngMessages'])
.controller('exampleCtrl', function($scope) {
this.model = '';
}
```
```html

```

I can also add .ng-submitted class etc that would help for styles