($element, $attrs, $scope, $animate, $interpolate)
| 23796 | //asks for $scope to fool the BC controller module |
| 23797 | FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate']; |
| 23798 | function FormController($element, $attrs, $scope, $animate, $interpolate) { |
| 23799 | this.$$controls = []; |
| 23800 | |
| 23801 | // init state |
| 23802 | this.$error = {}; |
| 23803 | this.$$success = {}; |
| 23804 | this.$pending = undefined; |
| 23805 | this.$name = $interpolate($attrs.name || $attrs.ngForm || '')($scope); |
| 23806 | this.$dirty = false; |
| 23807 | this.$pristine = true; |
| 23808 | this.$valid = true; |
| 23809 | this.$invalid = false; |
| 23810 | this.$submitted = false; |
| 23811 | this.$$parentForm = nullFormCtrl; |
| 23812 | |
| 23813 | this.$$element = $element; |
| 23814 | this.$$animate = $animate; |
| 23815 | |
| 23816 | setupValidity(this); |
| 23817 | } |
| 23818 | |
| 23819 | FormController.prototype = { |
| 23820 | /** |
nothing calls this directly
no test coverage detected