11{% extends "base.template.html" %}
2+ {% import "lib/deprecated.html" as x %}
23
34{% block content %}
45< h1 >
56 {% if doc.title %}{$ doc.title | marked $}{% else %}{$ doc.name | code $}{% endif %}
67</ h1 >
78
8- {% if doc.name != 'ng' and doc.name != 'auto' %}
9- < h2 > Installation</ h2 >
9+ {$ x.deprecatedBlock(doc) $}
1010
11- < p > First include {$ doc.packageFile | code $} in your HTML:</ p >
11+ < h2 > Installation</ h2 >
12+ {% if doc.installation or doc.installation == '' %}
13+ {$ doc.installation | marked $}
14+ {% else %}
1215
13- {% code %}
14- < script src ="angular.js ">
15- <script src="{$ doc.packageFile $}">
16- {% endcode %}
17-
18- <p>You can download this file from the following places:</p>
16+ < p > First, get the file:</ p >
1917 < ul >
2018 < 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 $ }
19+ < a href ="https://developers.google.com/speed/libraries/devguide#angularjs "> Google CDN</ a > e.g.
20+ {% code %} "//ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/{$ doc.packageFile $}"{% endcode % }
2321 </ li >
2422 < li >
25- <a href="http ://bower.io">Bower </a><br>
26- e.g. {% code %}bower install {$ doc.packageName $}@X.Y.Z{% endcode %}
23+ < a href ="https ://www.npmjs.com/ " > NPM </ a > e.g.
24+ {% code %}npm install {$ doc.packageName $}@X.Y.Z{% endcode %}
2725 </ li >
2826 < 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 %}
27+ < a href ="http://bower.io "> Bower</ a > e.g.
28+ {% code %}bower install {$ doc.packageName $}#X.Y.Z{% endcode %}
29+ </ li >
30+ < li >
31+ < a href ="https://code.angularjs.org/ "> code.angularjs.org</ a >
32+ (discouraged for production use) e.g.
33+ {% code %}"//code.angularjs.org/X.Y.Z/{$ doc.packageFile $}"{% endcode %}
3134 </ li >
3235 </ ul >
3336 < 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>
37+
38+ < p > Then, include {$ doc.packageFile | code $} in your HTML:</ p >
39+
40+ {% code %}
41+ < script src ="path/to/angular.js "> </ script >
42+ < script src ="path/to/{$ doc.packageFile $} "> </ script >
43+ {% endcode %}
44+
45+ < p > Finally, load the module in your application by adding it as a dependent module:</ p >
3546 {% code %}
3647 angular.module('app', ['{$ doc.name $}']);
3748 {% endcode %}
@@ -51,7 +62,7 @@ <h2 id="known-issues">Known Issues</h2>
5162 < td > {$ issueDoc.id | link(issueDoc.name, issueDoc) $}</ td >
5263 < td >
5364 {% for issue in issueDoc.knownIssues -%}
54- {$ issue | marked $}
65+ {$ issue | marked $} {% if not loop.last %} < hr > {% endif %}
5566 {% endfor -%}
5667 </ td >
5768 </ tr >
@@ -61,6 +72,7 @@ <h2 id="known-issues">Known Issues</h2>
6172{% endif %}
6273
6374
75+ {% if doc.componentGroups.length %}
6476< div class ="component-breakdown ">
6577 < h2 > Module Components</ h2 >
6678 {% for componentGroup in doc.componentGroups %}
@@ -81,6 +93,7 @@ <h3 class="component-heading" id="{$ componentGroup.groupType | dashCase $}">{$
8193 </ div >
8294 {% endfor %}
8395</ div >
96+ {% endif %}
8497
8598{% if doc.usage %}
8699 < h2 > Usage</ h2 >
0 commit comments