2
2
@name Developer Guide: Initializing Angular
3
3
@description
4
4
5
- Initializing angular consists of loading the `angular.js` script in your page, and specifying how
6
- angular should process and manage the page. To initialize angular you do the following:
5
+ Initializing Angular consists of loading the `angular.js` script in your page, and specifying how
6
+ Angular should process and manage the page. To initialize Angular you do the following:
7
7
8
- * Specify the angular namespace in the `<html>` page
9
- * Choose which flavor of angular script to load (debug or production)
10
- * Specify whether or not angular should process and manage the page automatically (`ng-app`)
8
+ * Specify the Angular namespace in the `<html>` page
9
+ * Choose which flavor of Angular script to load (debug or production)
10
+ * Specify whether or not Angular should process and manage the page automatically (`ng-app`)
11
11
12
- The simplest way to initialize angular is to load the angular script and tell angular to compile
12
+ The simplest way to initialize Angular is to load the Angular script and tell Angular to compile
13
13
and manage the whole page. You do this as follows:
14
14
15
15
<pre>
@@ -29,8 +29,8 @@ and manage the whole page. You do this as follows:
29
29
30
30
<html xmlns:ng="http://angularjs.org">
31
31
32
- You need to add the angular namespace declaration if you use `ng:something` style of declaring
33
- angular directives and you write your templates as XHTML. Or when you are targeting Internet
32
+ You need to add the Angular namespace declaration if you use `ng:something` style of declaring
33
+ Angular directives and you write your templates as XHTML. Or when you are targeting Internet
34
34
Explorer older than version 9 (because older versions of IE do not render namespace
35
35
properly for either HTML or XHTML). For more info please read {@link ie Internet Explorer
36
36
Compatibility} doc.
@@ -39,7 +39,7 @@ Compatibility} doc.
39
39
## Creating Your Own Namespaces
40
40
41
41
When you are ready to define your own {@link api/angular.module.ng.$compileProvider.directive
42
- directive}, you may chose to create your own namespace in addition to specifying the angular
42
+ directive}, you may chose to create your own namespace in addition to specifying the Angular
43
43
namespace. You use your own namespace to form the fully qualified name for directives that you
44
44
create.
45
45
@@ -52,7 +52,7 @@ it to your unique domain:
52
52
53
53
## Loading the Angular Bootstrap Script
54
54
55
- The angular bootstrap script comes in two flavors; a debug script, and a production script:
55
+ The Angular bootstrap script comes in two flavors; a debug script, and a production script:
56
56
57
57
* angular-[version].js - This is a human-readable file, suitable for development and debugging.
58
58
* angular-[version].min.js - This is a compressed and obfuscated file, suitable for use in
0 commit comments