ngModel.NgModelController.$commitViewValue()

$commitViewValue(); Commit a pending update to the $modelValue. Updates may be pending by a debounced event or because the input is waiting for a some future event defined in ng-model-options. this method is rarely needed as NgModelController usually handles calling this in response to input events.

ngModel.NgModelController.$invalid

$invalid boolean True if at least one error on the control.

ngModel.NgModelController.$formatters

$formatters Array.<Function> Array of functions to execute, as a pipeline, whenever the model value changes. The functions are called in reverse array order, each passing the value through to the next. The last return value is used as the actual DOM value. Used to format / convert values for display in the control. function formatter(value) { if (value) { return value.toUpperCase(); } } ngModel.$formatters.push(formatter);

ngModel.NgModelController.$error

$error Object An object hash with all failing validator ids as keys.

ngModel

directive in module ng The ngModel directive binds an input,select, textarea (or custom form control) to a property on the scope using NgModelController, which is created and exposed by this directive. ngModel is responsible for: Binding the view into the model, which other directives such as input, textarea or select require. Providing validation behavior (i.e. required, number, email, url). Keeping the state of the control (valid/invalid, dirty/pristine, touched/untouched, validation err

ngMockE2E.$httpBackend.whenPUT()

whenPUT(url, [data], [headers], [keys]); Creates a new backend definition for PUT requests. For more info see when(). Parameters Param Type Details url stringRegExpfunction(string) HTTP url or function that receives a url and returns true if the url matches the current definition. data (optional) stringRegExp HTTP request body. headers (optional) Objectfunction(Object) HTTP headers. keys (optional) Array Array of keys to assign to regex matches in request url described

ngMockE2E.service

Name Description $httpBackend Fake HTTP backend implementation suitable for end-to-end testing or backend-less development of applications that use the $http service.

ngMockE2E.$httpBackend.whenRoute()

whenRoute(method, url); Creates a new backend definition that compares only with the requested route. Parameters Param Type Details method string HTTP method. url string HTTP url string that supports colon param matching. Returns requestHandler Returns an object with respond and passThrough methods that control how a matched request is handled. You can save this object for later use and invoke respond or passThrough again in order to change how a matched request is handled.

ngMockE2E.$httpBackend.whenHEAD()

whenHEAD(url, [headers], [keys]); Creates a new backend definition for HEAD requests. For more info see when(). Parameters Param Type Details url stringRegExpfunction(string) HTTP url or function that receives a url and returns true if the url matches the current definition. headers (optional) Objectfunction(Object) HTTP headers. keys (optional) Array Array of keys to assign to regex matches in request url described on $httpBackend mock. Returns requestHandler Returns an

ngMockE2E.$httpBackend.whenJSONP()

whenJSONP(url, [keys]); Creates a new backend definition for JSONP requests. For more info see when(). Parameters Param Type Details url stringRegExpfunction(string) HTTP url or function that receives a url and returns true if the url matches the current definition. keys (optional) Array Array of keys to assign to regex matches in request url described on $httpBackend mock. Returns requestHandler Returns an object with respond and passThrough methods that control how a matched