First Entry Angularjs Foundation Gate

Source: Internet
Author: User

AngularJS building an app for a crud (create retrieve update delete),

Its contents: data binding {{}}, Basic template identifier, form data, routing, deep link, component reuse, dependency injection;

Code parsing:

Ng-app tags The scope of the Angularjs script.

{{}} Double Brace--angularjs Core function-binding.

Angular expression expressions are javascript-like snippets of code that run in a functioning domain, rather than the entire DOM.

Directive: Ng-app Initializes a ANGULARJS application

Ng-init instruction initializes application data

The Ng-model directive binds element values to the application

Ng-repeat repeats an HTML element loop an array of objects

$scope scope is the link between the HTML view and the JavaScript controller

Use: when you create a controller, you can pass the $scope object as a parameter

$rootScope Root scopes can act on the entire Application.

Filter: currency formatted numbers for currency format

Filter selects a subset from an array of items

Lowercase formatted string to lowercase

Order by to arrange an array based on an expression

Uppercase formatted string to uppercase

$HTTP. get (url). Success (function (response) {}) functions for reading server data

Select (selection box)

The ng-options directive creates a drop-down list of items that are looped by object and array

Ng-repeat command to create a drop-down list

Properties of HTML DOM elements binding directives that apply data

ng-disabled instruction <input type= ' button ' ng-disabled = ' true ' >

Ng-show ng-show = ' true '

Ng-hide

Event

Ng-click <button ng-click= "count=count+1" >

First Entry Angularjs Foundation Gate

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.