$compile.directive.Attributes.$removeClass()

$removeClass(classVal); Removes the CSS class value specified by the classVal parameter from the element. If animations are enabled then an animation will be triggered for the class removal. Parameters Param Type Details classVal string The className value that will be removed from the element

ng.filter

Name Description filter Selects a subset of items from array and returns it as a new array. currency Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default symbol for current locale is used. number Formats a number as text. date Formats date to a string based on the requested format. json Allows you to convert a JavaScript object into JSON string. lowercase Converts string to lowercase. uppercase Converts string to uppercase. limitTo Creates a

form.FormController.$rollbackViewValue()

$rollbackViewValue(); Rollback all form controls pending updates 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 typically needed by the reset button of a form that uses ng-model-options to pend updates.

Guide: Introduction

AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly. Angular's data binding and dependency injection eliminate much of the code you would otherwise have to write. And it all happens within the browser, making it an ideal partner with any server technology. Angular is what HTML would have been, had it been designed for applications. HTML is a grea

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

angular.element

function in module ng Wraps a raw DOM element or HTML string as a jQuery element. If jQuery is available, angular.element is an alias for the jQuery function. If jQuery is not available, angular.element delegates to Angular's built-in subset of jQuery, called "jQuery lite" or jqLite. jqLite is a tiny, API-compatible subset of jQuery that allows Angular to manipulate the DOM in a cross-browser compatible way. jqLite implements only the most commonly needed functionality with the goal of hav

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

ngCsp

directive in module ng Angular has some features that can break certain CSP (Content Security Policy) rules. If you intend to implement these rules then you must tell Angular not to use these features. This is necessary when developing things like Google Chrome Extensions or Universal Windows Apps. The following rules affect Angular: unsafe-eval: this rule forbids apps to use eval or Function(string) generated functions (among other things). Angular makes use of this in the $parse service

$location.port()

port(); This method is getter only. Return port of current url. // given url http://example.com/#/some/path?foo=bar&baz=xoxo var port = $location.port(); // => 80 Returns Number port

ngMockE2E.$httpBackend

service in module ngMockE2E Fake HTTP backend implementation suitable for end-to-end testing or backend-less development of applications that use the $http service. Note: For fake http backend implementation suitable for unit testing please see unit-testing $httpBackend mock. This implementation can be used to respond with static or dynamic responses via the when api and its shortcuts (whenGET, whenPOST, etc) and optionally pass through requests to the real $httpBackend for specific reques