5
5
{% if doc.title %}{$ doc.title | marked $}{% else %}{$ doc.name | code $}{% endif %}
6
6
</ h1 >
7
7
8
- {% if doc.name != 'ng' and doc.name != 'auto' %}
9
- < h2 > Installation</ h2 >
8
+ < h2 > Installation</ h2 >
9
+ {% if doc.installation or doc.installation == '' %}
10
+ {$ doc.installation | marked $}
11
+ {% else %}
10
12
11
- < p > First include {$ doc.packageFile | code $} in your HTML:</ p >
12
-
13
- {% code %}
14
- < script src ="angular.js "> </ script >
15
- < script src ="{$ doc.packageFile $} "> </ script >
16
- {% endcode %}
17
-
18
- < p > You can download this file from the following places:</ p >
13
+ < p > First, get the file:</ p >
19
14
< ul >
20
15
< li >
21
- < a href ="https://developers.google.com/speed/libraries/devguide#angularjs "> Google CDN</ a > < br >
22
- e.g. {$ ("//ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/" + doc.packageFile) | code $}
16
+ < a href ="https://developers.google.com/speed/libraries/devguide#angularjs "> Google CDN</ a > e.g.
17
+ {% code %}"//ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/{$ doc.packageFile $}"{% endcode %}
18
+ </ li >
19
+ < li >
20
+ < a href ="https://www.npmjs.com/ "> NPM</ a > e.g.
21
+ {% code %}npm install {$ doc.packageName $}@X.Y.Z{% endcode %}
23
22
</ li >
24
23
< li >
25
- < a href ="http://bower.io "> Bower</ a > < br >
26
- e.g. {% code %}bower install {$ doc.packageName $}@ X.Y.Z{% endcode %}
24
+ < a href ="http://bower.io "> Bower</ a > e.g.
25
+ {% code %}bower install {$ doc.packageName $}# X.Y.Z{% endcode %}
27
26
</ li >
28
27
< li >
29
- < a href ="http://code.angularjs.org/ "> code.angularjs.org</ a > < br >
30
- e.g. {% code %}"//code.angularjs.org/X.Y.Z/{$ doc.packageFile $}"{% endcode %}
28
+ < a href ="https://code.angularjs.org/ "> code.angularjs.org</ a >
29
+ (discouraged for production use) e.g.
30
+ {% code %}"//code.angularjs.org/X.Y.Z/{$ doc.packageFile $}"{% endcode %}
31
31
</ li >
32
32
</ ul >
33
33
< p > where X.Y.Z is the AngularJS version you are running.</ p >
34
- < p > Then load the module in your application by adding it as a dependent module:</ p >
34
+
35
+ < p > Then, include {$ doc.packageFile | code $} in your HTML:</ p >
36
+
37
+ {% code %}
38
+ < script src ="path/to/angular.js "> </ script >
39
+ < script src ="path/to/{$ doc.packageFile $} "> </ script >
40
+ {% endcode %}
41
+
42
+ < p > Finally, load the module in your application by adding it as a dependent module:</ p >
35
43
{% code %}
36
44
angular.module('app', ['{$ doc.name $}']);
37
45
{% endcode %}
@@ -51,7 +59,7 @@ <h2 id="known-issues">Known Issues</h2>
51
59
< td > {$ issueDoc.id | link(issueDoc.name, issueDoc) $}</ td >
52
60
< td >
53
61
{% for issue in issueDoc.knownIssues -%}
54
- {$ issue | marked $}
62
+ {$ issue | marked $} {% if not loop.last %} < hr > {% endif %}
55
63
{% endfor -%}
56
64
</ td >
57
65
</ tr >
@@ -61,6 +69,7 @@ <h2 id="known-issues">Known Issues</h2>
61
69
{% endif %}
62
70
63
71
72
+ {% if doc.componentGroups.length %}
64
73
< div class ="component-breakdown ">
65
74
< h2 > Module Components</ h2 >
66
75
{% for componentGroup in doc.componentGroups %}
@@ -81,6 +90,7 @@ <h3 class="component-heading" id="{$ componentGroup.groupType | dashCase $}">{$
81
90
</ div >
82
91
{% endfor %}
83
92
</ div >
93
+ {% endif %}
84
94
85
95
{% if doc.usage %}
86
96
< h2 > Usage</ h2 >
0 commit comments