ngModel.NgModelController.$setTouched()

$setTouched(); Sets the control to its touched state. This method can be called to remove the ng-untouched class and set the control to its touched state (ng-touched class). A model is considered to be touched when the user has first focused the control element and then shifted focus away from the control (blur event).

ngMock.$log.reset()

reset(); Reset all of the logging arrays to empty.

Guide: Scopes

Scope is an object that refers to the application model. It is an execution context for expressions. Scopes are arranged in hierarchical structure which mimic the DOM structure of the application. Scopes can watch expressions and propagate events. Scope characteristics Scopes provide APIs ($watch) to observe model mutations. Scopes provide APIs ($apply) to propagate any model changes through the system into the view from outside of the "Angular realm" (controllers, services, Angular event ha

select

directive in module ng HTML SELECT element with angular data-binding. The select directive is used together with ngModel to provide data-binding between the scope and the <select> control (including setting default values). It also handles dynamic <option> elements, which can be added using the ngRepeat or ngOptions directives. When an item in the <select> menu is selected, the value of the selected option will be bound to the model identified by the ngModel directive. Wi

ng.object

Name Description angular.version An object that contains information about the current AngularJS version.

form.FormController.$setPristine()

$setPristine(); Sets the form to its pristine state. This method can be called to remove the 'ng-dirty' class and set the form to its pristine state (ng-pristine class). This method will also propagate to all the controls contained in this form. Setting a form back to a pristine state is often useful when we want to 'reuse' a form after saving or resetting it.

ngMessages.ngMessages

directive in module ngMessages ngMessages is a directive that is designed to show and hide messages based on the state of a key/value object that it listens on. The directive itself complements error message reporting with the ngModel $error object (which stores a key/value state of validation errors). ngMessages manages the state of internal messages within its container element. The internal messages use the ngMessage directive and will be inserted/removed from the page depending on if t

$log.info()

info(); Write an information message

$cacheFactory.Cache.info()

info(); Retrieve information regarding a particular Cache. Returns object an object with the following properties: id: the id of the cache instance size: the number of entries kept in the cache instance ...: any additional properties from the options object when creating the cache.

input[email]

input in module ng Text input with email validation. Sets the email validation error key if not a valid email address. Note: input[email] uses a regex to validate email addresses that is derived from the regex used in Chromium. If you need stricter validation (e.g. requiring a top-level domain), you can use ng-pattern or modify the built-in validators (see the Forms guide) Directive Info This directive executes at priority level 0. Usage <input type="email" ng-model="string"