mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-24 10:20:23 +00:00
Added a bit more documentation to ng:autobind to explain some of the semantics
This commit is contained in:
parent
e7c22e8153
commit
64938a2e81
1 changed files with 4 additions and 0 deletions
|
|
@ -895,6 +895,10 @@ function encodeUriQuery(val, pctEncodeSpaces) {
|
|||
</html>
|
||||
* </pre>
|
||||
*
|
||||
* The reason why `ng:autobind` is needed at all is that angular does not want to be over-zealous
|
||||
* and assume the entire HTML document should be processed based solely on the fact you have
|
||||
* included the angular.js script.
|
||||
*
|
||||
* The `ng:autobind` attribute without any value tells angular to compile and manage the whole HTML
|
||||
* document. The compilation occurs as soon as the document is ready for DOM manipulation. Note that
|
||||
* you don't need to explicitly add an `onLoad` event handler; auto bind mode takes care of all the
|
||||
|
|
|
|||
Loading…
Reference in a new issue