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

Function FormController

lib/test/angular/1.7.0/angular.js:23798–23817  ·  view source on GitHub ↗
($element, $attrs, $scope, $animate, $interpolate)

Source from the content-addressed store, hash-verified

23796//asks for $scope to fool the BC controller module
23797FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];
23798function 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
23819FormController.prototype = {
23820 /**

Callers

nothing calls this directly

Calls 2

$interpolateFunction · 0.70
setupValidityFunction · 0.70

Tested by

no test coverage detected