Guide: Forms

Controls (input, select, textarea) are ways for a user to enter data. A Form is a collection of controls for the purpose of grouping related controls together. Form and controls provide validation services, so that the user can be notified of invalid input before submitting a form. This provides a better user experience than server-side validation alone because the user gets instant feedback on how to correct the error. Keep in mind that while client-side validation plays an important role in p

ngDblclick

directive in module ng The ngDblclick directive allows you to specify custom behavior on a dblclick event. Directive Info This directive executes at priority level 0. Usage as attribute: <ANY ng-dblclick="expression"> ... </ANY> Arguments Param Type Details ngDblclick expression Expression to evaluate upon a dblclick. (The Event object is available as $event)

ngMock.$animate.flush()

flush(); This method is used to flush the pending callbacks and animation frames to either start an animation or conclude an animation. Note that this will not actually close an actively running animation (see closeAndFlush() for that).

date

filter in module ng Formats date to a string based on the requested format. format string can be composed of the following elements: 'yyyy': 4 digit representation of year (e.g. AD 1 => 0001, AD 2010 => 2010) 'yy': 2 digit representation of year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10) 'y': 1 digit representation of year, e.g. (AD 1 => 1, AD 199 => 199) 'MMMM': Month in year (January-December) 'MMM': Month in year (Jan-Dec) 'MM': Month in year, padded (

ngRoute.$route.updateParams()

updateParams(newParams); Causes $route service to update the current URL, replacing current route parameters with those specified in newParams. Provided property names that match the route's path segment definitions will be interpolated into the location's path, while remaining properties will be treated as query params. Parameters Param Type Details newParams !Object<string, string> mapping of URL parameter names to values

ngMock.$httpBackend.verifyNoOutstandingRequest()

verifyNoOutstandingRequest(); Verifies that there are no outstanding requests that need to be flushed. Typically, you would call this method following each test case that asserts requests using an "afterEach" clause. afterEach($httpBackend.verifyNoOutstandingRequest);

Guide: Running in Production

There are a few things you might consider when running your AngularJS application in production. Disabling Debug Data By default AngularJS attaches information about binding and scopes to DOM nodes, and adds CSS classes to data-bound elements: As a result of ngBind, ngBindHtml or {{...}} interpolations, binding data and CSS class ng-binding are attached to the corresponding element. Where the compiler has created a new scope, the scope and either ng-scope or ng-isolated-scope CSS class are a

ngModel.NgModelController.$name

$name string The name attribute of the control.

ngCookies.$cookies.get()

get(key); Returns the value of given cookie key Parameters Param Type Details key string Id to use for lookup. Returns string Raw cookie value.

$templateRequest.totalPendingRequests

totalPendingRequests number total amount of pending template requests being downloaded.