Added a bit more documentation to ng:autobind to explain some of the semantics

This commit is contained in:
Craig Tataryn 2011-04-16 14:20:30 -05:00 committed by Igor Minar
parent e7c22e8153
commit 64938a2e81

View file

@ -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