($element, $attrs, $scope, $animate, $interpolate)
| 23675 | //asks for $scope to fool the BC controller module |
| 23676 | FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate']; |
| 23677 | function FormController($element, $attrs, $scope, $animate, $interpolate) { |
| 23678 | this.$$controls = []; |
| 23679 | |
| 23680 | // init state |
| 23681 | this.$error = {}; |
| 23682 | this.$$success = {}; |
| 23683 | this.$pending = undefined; |
| 23684 | this.$name = $interpolate($attrs.name || $attrs.ngForm || '')($scope); |
| 23685 | this.$dirty = false; |
| 23686 | this.$pristine = true; |
| 23687 | this.$valid = true; |
| 23688 | this.$invalid = false; |
| 23689 | this.$submitted = false; |
| 23690 | this.$$parentForm = nullFormCtrl; |
| 23691 | |
| 23692 | this.$$element = $element; |
| 23693 | this.$$animate = $animate; |
| 23694 | |
| 23695 | setupValidity(this); |
| 23696 | } |
| 23697 | |
| 23698 | FormController.prototype = { |
| 23699 | /** |
nothing calls this directly
no test coverage detected