mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-05 22:35:14 +08:00
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>
7 lines
125 B
Plaintext
7 lines
125 B
Plaintext
|
|
jqLiteWrap(document).ready(function(){
|
|
angularInit(angularJsConfig(document), document);
|
|
});
|
|
|
|
})(window, document);
|