Master Angular JS The first day of--angular Zen

Source: Internet
Author: User

Brief introduction

Angular JS is a client-side MVC framework written in JavaScript, which brings significant changes to the industry, including innovative implementations of templating and bidirectional binding of data, which makes it powerful and easy to use. It can be used to help developers write single-page applications, especially for rich, Ajax-style applications with a large number of crud operations. Most developers believe that ANGULARJS significantly reduces the amount of code required for a project compared to other frameworks.

June 2012, Angular JS officially released version 1.0, in a variety of client-side MVC framework, belong to the rising star. The Angularjs home page (http://www.angularjs.org) is all-encompassing: A conceptual overview, a textbook, a developer's guide, an API reference, and a lot of code snippets in Angularjs's documentation for reference.

Hello World--angualrjs Example

http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js "></script>

Open the page containing this code on the browser and the Hello,world will be displayed.

1, the code first contains the ANGULARJS library, the library is quite small, minimized and compressed only 30KB, and it does not depend on other libraries.

2, through the Angularjs custom Ng-app to guide the Angularjs library.

3. Before template rendering, you can use Ng-init to initialize the model name and pass its value through the {{name}} expression.

With this very simple example, the Angular JS template system shows some important features.

    • Add dynamic behavior to a static HTML document using custom HTML tags and attributes.
    • Use double curly braces as delimiters for expressions that output model values.

In Angularjs, all special HTML tags and attributes that can be understood and interpreted by the framework are collectively referred to as directives (directives).

Master Angular JS The first day of--angular Zen

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.