MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / FormController

Function FormController

lib/test/angular/1.6.7/angular.js:23350–23369  ·  view source on GitHub ↗
($element, $attrs, $scope, $animate, $interpolate)

Source from the content-addressed store, hash-verified

23348//asks for $scope to fool the BC controller module
23349FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];
23350function 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
23371FormController.prototype = {
23372 /**

Callers

nothing calls this directly

Calls 2

$interpolateFunction · 0.70
setupValidityFunction · 0.70

Tested by

no test coverage detected