($element, $attrs, $scope, $animate, $interpolate)
| 23348 | //asks for $scope to fool the BC controller module |
| 23349 | FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate']; |
| 23350 | function FormController($element, $attrs, $scope, $animate, $interpolate) { |
| 23351 | this.$$controls = []; |
| 23352 | |
| 23353 | // init state |
| 23354 | this.$error = {}; |
| 23355 | this.$$success = {}; |
| 23356 | this.$pending = undefined; |
| 23357 | this.$name = $interpolate($attrs.name || $attrs.ngForm || '')($scope); |
| 23358 | this.$dirty = false; |
| 23359 | this.$pristine = true; |
| 23360 | this.$valid = true; |
| 23361 | this.$invalid = false; |
| 23362 | this.$submitted = false; |
| 23363 | this.$$parentForm = nullFormCtrl; |
| 23364 | |
| 23365 | this.$$element = $element; |
| 23366 | this.$$animate = $animate; |
| 23367 | |
| 23368 | setupValidity(this); |
| 23369 | } |
| 23370 | |
| 23371 | FormController.prototype = { |
| 23372 | /** |
nothing calls this directly
no test coverage detected