feat(module): new module loader

This commit is contained in:
Misko Hevery
2012-01-06 18:10:47 -08:00
parent afd25446d2
commit 5143e7bf06
211 changed files with 1072 additions and 1263 deletions

View File

@@ -20,10 +20,10 @@ example points to (non-minified) version 0.9.12:
<pre>
<!doctype html>
<html xmlns:ng="http://angularjs.org">
<html xmlns:ng="http://angularjs.org" ng:app>
<head>
<title>My Angular App</title>
<script src="http://code.angularjs.org/angular-0.9.12.js" ng:autobind></script>
<script src="http://code.angularjs.org/angular-0.9.12.js"></script>
</head>
<body>
</body>

View File

@@ -27,18 +27,17 @@ Now let's take a closer look at that code, and see what is going on behind
the scenes.
The first line of interest defines the `ng` namespace, which makes
AngularJS work across all browsers (especially important for IE):
AngularJS work across all browsers (especially important for IE). The
`ng:app` tags tells angular to process the entire HTML when it is loaded:
<pre>
<html xmlns:ng="http://angularjs.org">
<html xmlns:ng="http://angularjs.org" ng:app>
</pre>
The next line downloads the angular script, and instructs angular to process
the entire HTML page when it is loaded:
The next line downloads the angular script:
<pre>
<script type="text/javascript" src="http://code.angularjs.org/angular-?.?.?.min.js"
ng:autobind></script>
<script type="text/javascript" src="http://code.angularjs.org/angular-?.?.?.min.js"></script>
</pre>
(For details on what happens when angular processes an HTML page,