MCPcopy Index your code
hub / github.com/angular-ui/ui-router / FormController

Function FormController

test/angular/1.6/angular.js:23677–23696  ·  view source on GitHub ↗
($element, $attrs, $scope, $animate, $interpolate)

Source from the content-addressed store, hash-verified

23675//asks for $scope to fool the BC controller module
23676FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];
23677function 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
23698FormController.prototype = {
23699 /**

Callers

nothing calls this directly

Calls 2

$interpolateFunction · 0.70
setupValidityFunction · 0.70

Tested by

no test coverage detected