AngularJS Reference Manual

Source: Internet
Author: User
Tags html form

AngularJS Reference Manuals

AngularJS instruction

The AngularJS directive used in this tutorial:

Instructions

Describe

Ng-app

Defines the root element of the application.

Ng-bind

Binding HTML elements to application data

Ng-bind-html

Binds HTML elements of InnerHTML to application data and removes dangerous characters from HTML strings

Ng-bind-template

Specify the text content to replace with the template

Ng-blur

The act of stipulating the Blur event

Ng-change

Specify an expression to be executed when the content changes

Ng-checked

Specifies whether the element is selected

Ng-class

Specifying the CSS classes used by HTML elements

Ng-class-even

Similar to Ng-class, but only works on even lines

Ng-class-odd

Similar to Ng-class, but only works in odd lines

Ng-click

Define behavior when elements are clicked

Ng-cloak

Prevent the app from flashing when it is about to load

Ng-controller

Defining the Controller object for an app

Ng-copy

Specify the behavior of the copy event

Ng-csp

Security policy for modifying content

Ng-cut

Specify the behavior of the cut event

Ng-dblclick

Specify the behavior of double-click events

Ng-disabled

Specifies whether an element is disabled

Ng-focus

Specify the behavior of the focus event

Ng-form

Specify HTML form Inheritance controller form

Ng-hide

Hide or show HTML elements

Ng-href

Specify a link for the <a> element

Ng-if

Remove HTML element If condition is false

Ng-include

Include HTML files in your app

Ng-init

To define an applied initialization value

Ng-jq

Define the libraries that your app must use, such as: JQuery

Ng-keydown

Specifies the behavior of pressing the key event

Ng-keypress

Specifies the behavior of pressing the key event

Ng-keyup

Specify the behavior of releasing key events

Ng-list

Convert text to a list (array)

Ng-model

Binding the value of the HTML controller to the app data

Ng-model-options

Specify how the model is updated

Ng-mousedown

Specifies the behavior when the mouse button is pressed

Ng-mouseenter

Specify behavior when the mouse pointer passes through an element

Ng-mouseleave

Specifies the behavior of the mouse pointer when it leaves the element

Ng-mousemove

Specifies the behavior of the mouse pointer as it moves through the specified element

Ng-mouseover

Specifies behavior when the mouse pointer is over an element

Ng-mouseup

Specifies the behavior when the mouse button is released on the element

Ng-non-bindable

Specifies that an element or child element cannot bind data

Ng-open

Specify an element's Open property

Ng-options

Specify <options> in the <select> list

Ng-paste

Specify the behavior of the Paste event

Ng-pluralize

Display information based on localization rules

Ng-readonly

ReadOnly property of the specified element

Ng-repeat

A template that defines the data for each item in the collection

ng-selected

Selected property of the specified element

Ng-show

Show or hide HTML elements

Ng-src

Specify the src attribute of the element

Ng-srcset

Specify the Srcset property of the element

Ng-style

Specifies the element's style property

Ng-submit

Specify an expression to execute when the onsubmit event occurs

Ng-switch

Specify conditions for showing or hiding child elements

Ng-transclude

Specify the target position of the fill

Ng-value

Specify the value of the INPUT element

Filter resolution AngularJs filter.

AngularJS Events

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 resolution: Angular event.

AngularJS Validation Properties

· $dirty

· $invalid

· $error

Validation parsing: Angular validation.

AngularJS Global API

Transformation

Api

Describe

Angular.lowercase ()

Convert a string to lowercase

Angular.uppercase ()

Convert a string to uppercase

Angular.copy ()

Array or object deep copy

Angular.foreach ()

An iterative function of an object or array

Comparison

Api

Describe

Angular.isarray ()

Returns true if the reference is an array

Angular.isdate ()

Returns true if the reference is a date

Angular.isdefined ()

Returns true if the reference is defined

Angular.iselement ()

Returns true if the referenced DOM element is

Angular.isfunction ()

If the reference is a function that returns true

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 not defined

Angular.equals ()

Returns true if two objects are equal

Json

Api

Describe

Angular.fromjson ()

Deserializing JSON Strings

Angular.tojson ()

Serializing a JSON string

Basis

Api

Describe

Angular.bootstrap ()

Manually Start AngularJS

Angular.element ()

Wraps a portion of the DOM element or an HTML string, and handles it as a jquery element.

Angular.module ()

Create, register, or retrieve AngularJS modules

Global API parsing: Angular API.

AngularJS Reference Manual

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.