MCPcopy
hub / github.com/angular-ui/ui-grid / FormController

Function FormController

lib/test/angular/1.8.0/angular.js:24588–24607  ·  view source on GitHub ↗
($element, $attrs, $scope, $animate, $interpolate)

Source from the content-addressed store, hash-verified

24586//asks for $scope to fool the BC controller module
24587FormController.$inject = ['$element', '$attrs', '$scope', '$animate', '$interpolate'];
24588function FormController($element, $attrs, $scope, $animate, $interpolate) {
24589 this.$$controls = [];
24590
24591 // init state
24592 this.$error = {};
24593 this.$$success = {};
24594 this.$pending = undefined;
24595 this.$name = $interpolate($attrs.name || $attrs.ngForm || '')($scope);
24596 this.$dirty = false;
24597 this.$pristine = true;
24598 this.$valid = true;
24599 this.$invalid = false;
24600 this.$submitted = false;
24601 this.$$parentForm = nullFormCtrl;
24602
24603 this.$$element = $element;
24604 this.$$animate = $animate;
24605
24606 setupValidity(this);
24607}
24608
24609FormController.prototype = {
24610 /**

Callers

nothing calls this directly

Calls 2

$interpolateFunction · 0.70
setupValidityFunction · 0.70

Tested by

no test coverage detected