input[url]

input in module ng Text input with URL validation. Sets the url validation error key if the content is not a valid URL. Note: input[url] uses a regex to validate urls that is derived from the regex used in Chromium. If you need stricter validation, 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="url" ng-model="string" [name="string"] [required="string"]

ngModelOptions

directive in module ng Allows tuning how model updates are done. Using ngModelOptions you can specify a custom list of events that will trigger a model update and/or a debouncing delay so that the actual update only takes place when a timer expires; this timer will be reset after another change takes place. Given the nature of ngModelOptions, the value displayed inside input fields in the view might be different from the value in the actual model. This means that if you update the model yo

angular.module

function in module ng The angular.module is a global place for creating, registering and retrieving Angular modules. All modules (angular core or 3rd party) that should be available to an application must be registered using this mechanism. Passing one argument retrieves an existing angular.Module, whereas passing more than one argument creates a new angular.Module Module A module is a collection of services, directives, controllers, filters, and configuration information. angular.module i

ngModel.NgModelController.$parsers

$parsers Array.<Function> Array of functions to execute, as a pipeline, whenever the control reads value from the DOM. The functions are called in array order, each passing its return value through to the next. The last return value is forwarded to the $validators collection. Parsers are used to sanitize / convert the $viewValue. Returning undefined from a parser means a parse error occurred. In that case, no $validators will run and the ngModel will be set to undefined unless ngModelOpt

$http.jsonp()

jsonp(url, [config]); Shortcut method to perform JSONP request. Parameters Param Type Details url string Relative or absolute URL specifying the destination of the request. The name of the callback should be the string JSON_CALLBACK. config (optional) Object Optional configuration object Returns HttpPromise Future object

$rootScope.Scope.$new()

$new(isolate, parent); Creates a new child scope. The parent scope will propagate the $digest() event. The scope can be removed from the scope hierarchy using $destroy(). $destroy() must be called on a scope when it is desired for the scope and its child scopes to be permanently detached from the parent and thus stop participating in model change detection and listener notification by invoking. Parameters Param Type Details isolate boolean If true, then the scope does not prototypically

ngMessages.ngMessage

directive in module ngMessages ngMessage is a directive with the purpose to show and hide a particular message. For ngMessage to operate, a parent ngMessages directive on a parent DOM element must be situated since it determines which messages are visible based on the state of the provided key/value map that ngMessages listens on. More information about using ngMessage can be found in the ngMessages module documentation. Directive Info This directive creates new scope. This directive exe

Guide: Services

Angular services are substitutable objects that are wired together using dependency injection (DI). You can use services to organize and share code across your app. Angular services are: Lazily instantiated â Angular only instantiates a service when an application component depends on it. Singletons â Each component dependent on a service gets a reference to the single instance generated by the service factory. Angular offers several useful services (like $http), but for most applications you

ngRoute.$route

$routeProvider service in module ngRoute $route is used for deep-linking URLs to controllers and views (HTML partials). It watches $location.url() and tries to map the path to an existing route definition. Requires the ngRoute module to be installed. You can define routes through $routeProvider's API. The $route service is typically used in conjunction with the ngView directive and the $routeParams service. Dependencies $location $routeParams Methods reload(); Causes $route service t

currency

filter in module ng Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default symbol for current locale is used. Usage In HTML Template Binding {{ currency_expression | currency : symbol : fractionSize}} In JavaScript $filter('currency')(amount, symbol, fractionSize) Arguments Param Type Details amount number Input to filter. symbol (optional) string Currency symbol or identifier to be displayed. fractionSize (optional) number Number of