diff options
| author | Igor Minar | 2011-03-10 14:26:22 -0800 | 
|---|---|---|
| committer | Igor Minar | 2011-03-11 08:45:43 -0800 | 
| commit | 9d5c53379180a110e427a01a1446eada3f0fc3d6 (patch) | |
| tree | 536adf248746cbf6c38199ab033cfe29adc1859e /src/angular-bootstrap.js | |
| parent | 7414e7b53302863911c734c8586b76767d2ded6b (diff) | |
| download | angular.js-9d5c53379180a110e427a01a1446eada3f0fc3d6.tar.bz2 | |
ng:autobind now optionally takes element id
so it is possible to easily compile just a part of a document.
e.g.:
<html>
  <head>
    <title>partially compiled doc</title>
    <script src="angular.js" ng:autobind="compileThis"></script>
  </head>
  <body>
    this part won't be compiled: {{1+2}}
    <div id="compileThis" ng:init="i=0" ng:click="i = i+1">
      Click count: {{i}}
    </div>
  </body>
</html>
Diffstat (limited to 'src/angular-bootstrap.js')
| -rw-r--r-- | src/angular-bootstrap.js | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/angular-bootstrap.js b/src/angular-bootstrap.js index 41ec2088..946968ab 100644 --- a/src/angular-bootstrap.js +++ b/src/angular-bootstrap.js @@ -153,7 +153,7 @@      //angular-ie-compat.js needs to be pregenerated for development with IE<8      if (msie<8) addScript('../angular-ie-compat.js'); -    angularInit(angularJsConfig(document)); +    angularInit(angularJsConfig(document), document);    }    if (window.addEventListener){ | 
