English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
AngularJS directives used in this tutorial:
Directive | Description |
---|---|
ng-app | Define the root element of the application. |
ng-bind | Bind an HTML element to application data |
ng-bind-html | Bind the innerHTML of an HTML element to application data, and remove dangerous characters from the HTML string |
ng-bind-template | Specify the text content to be replaced by the template |
ng-blur | Specify the behavior of the blur event |
ng-change | Specify the expression to be executed when the content changes |
ng-checked | Specify whether an element is selected |
ng-class | Specify the CSS class used by the HTML element |
ng-class-even | Similar to ng-class, but only on even rows |
ng-class-odd | Similar to ng-class, but only on odd rows |
ng-click | Define the behavior of an element when it is clicked |
ng-cloak | Prevent the application from blinking when it is about to load |
ng-controller | Define the controller object of the application |
ng-copy | Define the behavior of the copy event |
ng-csp | Modify the content security policy |
ng-cut | Define the behavior of the cut event |
ng-dblclick | Define the behavior of the double-click event |
ng-disabled | Specify whether an element is disabled |
ng-focus | Define the behavior of the focus event |
ng-form | Specify that the HTML form inherits the controller form |
ng-hide | Hide or show HTML elements |
ng-href | Specify the link for the <a> element |
ng-if | Remove HTML elements if the condition is false |
ng-include | Include HTML files in the application |
ng-init | Define the initial values of the application |
ng-jq | Define the libraries that the application must use, such as: jQuery |
ng-keydown | Define the behavior of the event when a key is pressed |
ng-keypress | Define the behavior of the event when a key is pressed |
ng-keyup | Define the behavior of the event when a key is released |
ng-list | Convert text to a list (array) |
ng-model | Bind the value of an HTML controller to application data |
ng-model-options | Define how to update the model |
ng-mousedown | Define the behavior when a mouse button is pressed |
ng-mouseenter | Define the behavior of the mouse pointer when it passes through an element |
ng-mouseleave | Define the behavior of the mouse pointer when it leaves an element |
ng-mousemove | Define the behavior of the mouse pointer when moving over a specified element |
ng-mouseover | Specify the behavior when the mouse pointer is above the element |
ng-mouseup | Specify the behavior when the mouse button is released on the element |
ng-non-bindable | Specify that the element or child elements cannot bind data |
ng-open | Specify the open attribute of the element |
ng-options | Specify <options> in the <select> list |
ng-paste | Specify the behavior of the paste event |
ng-pluralize | Display information according to localization rules |
ng-readonly | Specify the readonly attribute of the element |
ng-repeat | Define the template for each item of data in the set |
ng-selected | Specify the selected attribute of the element |
ng-show | Show or hide HTML elements |
ng-src | Specify the src attribute of the <img> element |
ng-srcset | Specify the srcset attribute of the <img> element |
ng-style | Specify the style attribute of the element |
ng-submit | Specify the expression to be executed when the onsubmit event occurs |
ng-switch | Specify the condition for displaying or hiding child elements |
ng-transclude | Specify the target position for filling |
ng-value | Specify the value of the input element |
Filter parsing AngularJs Filters.
AngularJS supports the following events:
ng-click
ng-dbl-click
ng-mousedown
ng-mouseenter
ng-mouseleave
ng-mousemove
ng-keydown
ng-keyup
ng-keypress
ng-change
Event parsing: Angular Events.
$dirty
$invalid
$error
Validation parsing:Angular Validation.
API | Description |
---|---|
angular.lowercase() | Convert a string to lowercase |
angular.uppercase() | Convert a string to uppercase |
angular.copy() | Deep copy of arrays or objects |
angular.forEach() | Iteration function for objects or arrays |
API | Description |
---|---|
angular.isArray() | If the reference is an array, return true |
angular.isDate() | If the reference is a date, return true |
angular.isDefined() | If the reference is defined, return true |
angular.isElement() | If the reference is a DOM element, return true |
angular.isFunction() | Returns true if the reference is a function |
angular.isNumber() | Returns true if the reference is a number |
angular.isObject() | Returns true if the reference is an object |
angular.isString() | Returns true if the reference is a string |
angular.isUndefined() | Returns true if the reference is undefined |
angular.equals() | Returns true if two objects are equal |
API | Description |
---|---|
angular.fromJson() | Deserialize JSON string |
angular.toJson() | Serialize JSON string |
API | Description |
---|---|
angular.bootstrap() | Manually Start AngularJS |
angular.element() | Wraps a part of DOM element or HTML string and treats it as a jQuery element. |
angular.module() | Create, register, or retrieve AngularJS modules |
Global API Parsing :Angular API.