ngModel.NgModelController.$dirty

$dirty boolean True if user has already interacted with the control.

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.$asyncValidators

$asyncValidators Object.<string, function> A collection of validations that are expected to perform an asynchronous validation (e.g. a HTTP request). The validation function that is provided is expected to return a promise when it is run during the model validation process. Once the promise is delivered then the validation status will be set to true when fulfilled and false when rejected. When the asynchronous validators are triggered, each of the validators will run in parallel and the

ngModel.NgModelController

type in module ng NgModelController provides API for the ngModel directive. The controller contains services for data-binding, validation, CSS updates, and value formatting and parsing. It purposefully does not contain any logic which deals with DOM rendering or listening to DOM events. Such DOM related logic should be provided by other directives which make use of NgModelController for data-binding to control elements. Angular provides this DOM logic for most input elements. At the end of

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.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.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.$httpBackend.whenPOST()

whenPOST(url, [data], [headers], [keys]); Creates a new backend definition for POST 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 describe

ngMockE2E.$httpBackend.whenPATCH()

whenPATCH(url, [data], [headers], [keys]); Creates a new backend definition for PATCH 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 descri