AngularJS References

AngularJS Directives

Directive Description
ng-app Defines the root component of an application.
ng-bind Binds the substance of a HTML component to application data.
ng-bind html Binds the innerHTML of a HTML component to application information, and furthermore expels unsafe code from the HTML string.
ng-bind template Specifies that the content substance ought to be supplanted with a template.
ng-blur Specifies a conduct on haze events.
ng-change Specifies an articulation to assess when content is being changed by the user.
ng-checked Specifies if a component is checked or not.
ng-class Specifies CSS classes on HTML elements.
ng-class-even Same as ng-class, however will just produce results on even rows.
ng-class-odd Same as ng-class, however will just produce results on odd rows.
ng-click Specifies an articulation to assess when a component is being clicked.
ng-cloak Prevents glinting when your application is being loaded.
ng-controller Defines the controller object for an application.
ng-copy Specifies a conduct on duplicate events.
ng-csp Changes the substance security policy.
ng-cut Specifies a conduct on cut events.
ng-dblclick Specifies a conduct on double tap events.
ng-disabled Specifies if a component is crippled or not.
ng-focus Specifies a conduct on center events.
ng-form Specifies a HTML structure to acquire controls from.
ng-hide Hides or shows HTML elements.
ng-href Specifies a url for the <a> element.
ng-if Removes the HTML component if a condition is false.
ng-include Includes HTML in an application.
ng-init Defines beginning qualibinds for an application.
ng-jq Specifies that the application must utilize a library, as jQuery.
ng-keydown Specifies a conduct on keydown events.
ng-keypress Specifies a conduct on keypress events.
ng-keyup Specifies a conduct on keyup events.
ng-list Converts content into a rundown (array).
ng-model Binds the estimation of HTML controls to application data.
ng-model options Specifies how refreshes in the model are done.
ng-mousedown Specifies a conduct on mousedown events.
ng-mouseenter Specifies a conduct on mouseenter events.
ng-mouseleave Specifies a conduct on mouseleave events.
ng-mousemove Specifies a conduct on mousemove events.
ng-mouseover Specifies a conduct on mouseover events.
ng-mouseup Specifies a conduct on mouseup events.
ng-non-bindable Specifies that no information restricting can occur in this component, or it's children.
ng-open Specifies the open quality of an element.
ng-options Specifies <options> in a <select> list.
ng-paste Specifies a conduct on glue events.
ng-pluralize Specifies a message to show as indicated by en-us restriction rules.
ng-readonly Specifies the readonly trait of an element.
ng-repeat Defines a layout for every datum in a collection.
ng-required Specifies the required trait of an element.
ng-selected Specifies the chose trait of an element.
ng-show Shows or shrouds HTML elements.
ng-src Specifies the src property for the <img> element.
ng-srcset Specifies the srcset property for the <img> element.
ng-style Specifies the style property for an element.
ng-submit Specifies articulations to keep running on onsubmit events.
ng-switch Specifies a condition that will be utilized to appear/conceal youngster elements.
ng-transclude Specifies a point to embed transcluded elements.
ng-value Specifies the estimation of an info element.

AngularJS Validation Properbinds

  • $dirty
  • $invalid
  • $error

Validation is clarified in Angular Validation.

AngularJS Global API


API Description
angular.lowercase() Converts a string to lowercase
angular.uppercase() Converts a string to uppercase
angular.copy() Creates a profound duplicate of an item or an array
angular.forEach() Executes a capacity for every component in an article or array


API Description
angular.isArray() Returns genuine if the reference is an array
angular.isDate() Returns genuine if the reference is a date
angular.isDefined() Returns genuine if the reference is defined
angular.isElement() Returns genuine if the reference is a DOM element
angular.isFunction() Returns genuine if the reference is a function
angular.isNumber() Returns genuine if the reference is a number
angular.isObject() Returns genuine if the reference is an object
angular.isString() Returns genuine if the reference is a string
angular.isUndefined() Returns genuine if the reference is undefined
angular.equals() Returns genuine if two references are equal


API Description
angular.fromJSON() Deserializes a JSON string
angular.toJSON() Serializes a JSON string


API Description
angular.bootstrap() Starts AngularJS manually
angular.element() Wraps a HTML component as a jQuery element
angular.module() Creates, enlists, or recovers an AngularJS module

The Global API is clarified in Angular API.