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.