($element, $attrs, $scope, $animate, $interpolate)
| 24586 | //asks for $scope to fool the BC controller module |
| 24587 | FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate']; |
| 24588 | function FormController($element, $attrs, $scope, $animate, $interpolate) { |
| 24589 | this.$$controls = []; |
| 24590 | |
| 24591 | // init state |
| 24592 | this.$error = {}; |
| 24593 | this.$$success = {}; |
| 24594 | this.$pending = undefined; |
| 24595 | this.$name = $interpolate($attrs.name || $attrs.ngForm || '')($scope); |
| 24596 | this.$dirty = false; |
| 24597 | this.$pristine = true; |
| 24598 | this.$valid = true; |
| 24599 | this.$invalid = false; |
| 24600 | this.$submitted = false; |
| 24601 | this.$$parentForm = nullFormCtrl; |
| 24602 | |
| 24603 | this.$$element = $element; |
| 24604 | this.$$animate = $animate; |
| 24605 | |
| 24606 | setupValidity(this); |
| 24607 | } |
| 24608 | |
| 24609 | FormController.prototype = { |
| 24610 | /** |
nothing calls this directly
no test coverage detected