Angular References

AngularJS References


AngularJS Directives

Directive Description
ng-app Defines the rootage chemical gene of an application.
ng-bind Binds the content of an HTML chemical gene to application data.
ng-bind-html Binds the innerHTML of an HTML chemical gene to application data, too too removes unsafe code from the HTML string.
ng-bind-template Specifies that the text content should hold out replaced alongside a template.
ng-blur Specifies a behaviour on blur events.
ng-change Specifies an human face to evaluate when content is existence changed past times the user.
ng-checked Specifies if an chemical gene is checked or not.
ng-class Specifies CSS classes on HTML elements.
ng-class-even Same equally ng-class, but volition solely hit got lawsuit on fifty-fifty rows.
ng-class-odd Same equally ng-class, but volition solely hit got lawsuit on strange rows.
ng-click Specifies an human face to evaluate when an chemical gene is existence clicked.
ng-cloak Prevents flickering when your application is existence loaded.
ng-controller Defines the controller object for an application.
ng-copy Specifies a behaviour on re-create events.
ng-csp Changes the content safety policy.
ng-cut Specifies a behaviour on cutting events.
ng-dblclick Specifies a behaviour on double-click events.
ng-disabled Specifies if an chemical gene is disabled or not.
ng-focus Specifies a behaviour on focus events.
ng-form Specifies an HTML shape to inherit controls from.
ng-hide Hides or shows HTML elements.
ng-href Specifies a url for the <a> element.
ng-if Removes the HTML chemical gene if a status is false.
ng-include Includes HTML inward an application.
ng-init Defines initial values for an application.
ng-jq Specifies that the application must utilisation a library, similar jQuery.
ng-keydown Specifies a behaviour on keydown events.
ng-keypress Specifies a behaviour on keypress events.
ng-keyup Specifies a behaviour on keyup events.
ng-list Converts text into a listing (array).
ng-maxlength Specifies the maximum expose of characters allowed inward the input field.
ng-minlength Specifies the minimum expose of characters allowed inward the input field.
ng-model Binds the value of HTML controls to application data.
ng-model-options Specifies how updates inward the model are done.
ng-mousedown Specifies a behaviour on mousedown events.
ng-mouseenter Specifies a behaviour on mouseenter events.
ng-mouseleave Specifies a behaviour on mouseleave events.
ng-mousemove Specifies a behaviour on mousemove events.
ng-mouseover Specifies a behaviour on mouseover events.
ng-mouseup Specifies a behaviour on mouseup events.
ng-non-bindable Specifies that no information binding tin occur inward this element, or its children.
ng-open Specifies the opened upwards attribute of an element.
ng-options Specifies <options> inward a <select> list.
ng-paste Specifies a behaviour on glue events.
ng-pluralize Specifies a message to display according to en-us localization rules.
ng-readonly Specifies the readonly attribute of an element.
ng-repeat Defines a template for each information inward a collection.
ng-required Specifies the required attribute of an element.
ng-selected Specifies the selected attribute of an element.
ng-show Shows or hides HTML elements.
ng-src Specifies the src attribute for the <img> element.
ng-srcset Specifies the srcset attribute for the <img> element.
ng-style Specifies the vogue attribute for an element.
ng-submit Specifies expressions to run on onsubmit events.
ng-switch Specifies a status that volition hold out used to show/hide kid elements.
ng-transclude Specifies a betoken to insert transcluded elements.
ng-value Specifies the value of an input element.

AngularJS Directives on HTML Elements

AngularJS modifies the default behaviour of unopen to HTML elements.
Element Description
a AngularJS modifies the <a> element's default behaviors.
form AngularJS modifies the <form> element's default behaviors.
input AngularJS modifies the <input> element's default behaviors.
script AngularJS modifies the <script> element's default behaviors.
select AngularJS modifies the <select> element's default behaviors.
textarea AngularJS modifies the <textarea> element's default behaviors.

AngularJS Filters

Filter Description
currency Format a expose to a currency format.
date Format a engagement to a specified format.
filter Select a subset of items from an array.
json Format an object to a JSON string.
limitTo Limits an array, or a string, into a specified expose of elements/characters.
lowercase Format a string to lower case.
number Format a expose to a string.
orderBy Orders an array past times an expression.
uppercase Format a string to upper case.
Filters are explained inward Angular Filters.

AngularJS Validation Properties

  • $dirty
  • $invalid
  • $error
Validation is explained inward Angular Validation.

AngularJS Global API

Converting

API Description
angular.lowercase() Converts a string to lowercase
angular.uppercase() Converts a string to uppercase
angular.copy() Creates a deep re-create of an object or an array
angular.forEach() Executes a business office for each chemical gene inward an object or array

Comparing

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

JSON

API Description
angular.fromJson() Takes a JSON string too returns an JavaScript object
angular.toJson() Takes a JavaScript object too returns a JSON string

Basic

API Description
angular.bootstrap() Starts AngularJS manually
angular.element() Wraps an HTML chemical gene equally an jQuery element
angular.module() Creates, registers, or retrieves an AngularJS module
The Global API is explained inward Angular API.


Comments

Popular posts from this blog

What Are The Main Components of a Computer System

Top Qualities To Look For In An IT Support Team

How To Integrate Google Adwords Api Into Codeigniter?