diff options
| author | Craig Tataryn | 2011-04-16 14:20:30 -0500 |
|---|---|---|
| committer | Igor Minar | 2011-04-16 14:36:47 -0700 |
| commit | 64938a2e819c6cf58dd750fd04c6346c5aea3333 (patch) | |
| tree | 82f1505df3cbefc421074e167bab908edb0f0df2 /src/Angular.js | |
| parent | e7c22e8153aaed4257d5b86cb74783b68a7af6f6 (diff) | |
| download | angular.js-64938a2e819c6cf58dd750fd04c6346c5aea3333.tar.bz2 | |
Added a bit more documentation to ng:autobind to explain some of the semantics
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Angular.js b/src/Angular.js index 1762c11d..3789dcbe 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -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 |
