Recently had a chance to get in touch with Angularjs.

Source: Internet
Author: User

Note the concept of more than a few notes to straighten out the time:

Overall: 1.ng-src src attribute 2.ng-href href attribute 3.ng-checked selected state 4.ng-selected is selected 5.ng-  Disabled disable State 6.ng-Multiple multi-select status 7.ng-readonly read-only status note: These are just one-way bindings, that is, from data to presentation, not to data. To bind in two directions, or to use NG

  event binding event binding is a good part of template directives. We can write the handler function of the related event directly in the DOM, so the best thing to do is to see the form of business processing from the DOM structure, and you know which function is executed when you click on the node. ng -changeng -clickng -blurng -dblclickng -mousedownng -mouseenterng -mouseleaveng - Span style= "color: #000000;" >mousemoveng -mouseoverng -mouseupng -submit for the event object itself, it can be passed directly using $event when the function is called:  
Inputinput is the main entrance to the data. NG supports the related properties in HTML5 and also makes compatibility with the old browser. Most importantly, the rule definition for input is a reference to the related behavior of the owning form (such as whether the form validates successfully). The relevant properties available for the input control are:1. Name Name 2.ng-model bound data 3. Required is required 4.ng-required is required 5.ng-minlength Minimum length 6.ng-maxlength Maximum length 7.ng-pattern matching mode 8.ng-change value change callback

Have not forgotten the source of ..... Just copy it here.

Recommended address recently viewed: http://www.zouyesheng.com/angular.html#toc29

Of course, the Chinese community also has a classic curriculum but I have not been patient to read the show to learn more!

Recently had a chance to get in touch with Angularjs.

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.