mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 15:40:22 +00: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>
6 lines
125 B
Text
6 lines
125 B
Text
|
|
jqLiteWrap(document).ready(function(){
|
|
angularInit(angularJsConfig(document), document);
|
|
});
|
|
|
|
})(window, document);
|