|
| 1 | +{% extends "base.template.html" %} |
| 2 | + |
| 3 | +{% block content %} |
| 4 | +<h1> |
| 5 | + {% if doc.title %}{$ doc.title | marked $}{% else %}{$ doc.name | code $}{% endif %} |
| 6 | +</h1> |
| 7 | + |
| 8 | +{% if doc.installation or doc.installation == '' %} |
| 9 | + {$ doc.installation | marked $} |
| 10 | +{% else %} |
| 11 | + <h2>Installation</h2> |
| 12 | + |
| 13 | + <p>First include {$ doc.packageFile | code $} in your HTML:</p> |
| 14 | + |
| 15 | + {% code %} |
| 16 | + <script src="angular.js"> |
| 17 | + <script src="{$ doc.packageFile $}"> |
| 18 | + {% endcode %} |
| 19 | + |
| 20 | + <p>You can download this file from the following places:</p> |
| 21 | + <ul> |
| 22 | + <li> |
| 23 | + <a href="https://developers.google.com/speed/libraries/devguide#angularjs">Google CDN</a><br> |
| 24 | + e.g. {$ ("//ajax.googleapis.com/ajax/libs/angularjs/X.Y.Z/" + doc.packageFile) | code $} |
| 25 | + </li> |
| 26 | + <li> |
| 27 | + <a href="http://bower.io">Bower</a><br> |
| 28 | + e.g. {% code %}bower install {$ doc.packageName $}@X.Y.Z{% endcode %} |
| 29 | + </li> |
| 30 | + <li> |
| 31 | + <a href="http://code.angularjs.org/">code.angularjs.org</a><br> |
| 32 | + e.g. {% code %}"//code.angularjs.org/X.Y.Z/{$ doc.packageFile $}"{% endcode %} |
| 33 | + </li> |
| 34 | + </ul> |
| 35 | + <p>where X.Y.Z is the AngularJS version you are running.</p> |
| 36 | + <p>Then load the module in your application by adding it as a dependent module:</p> |
| 37 | + {% code %} |
| 38 | + angular.module('app', ['{$ doc.name $}']); |
| 39 | + {% endcode %} |
| 40 | + |
| 41 | + <p>With that you're ready to get started!</p> |
| 42 | +{% endif %} |
| 43 | + |
| 44 | +{$ doc.description | marked $} |
| 45 | + |
| 46 | +{% if doc.knownIssueDocs %} |
| 47 | +<div class="known-issues"> |
| 48 | + <h2 id="known-issues">Known Issues</h2> |
| 49 | + <table class="definition-table"> |
| 50 | + <tr><th>Name</th><th>Description</th></tr> |
| 51 | + {% for issueDoc in doc.knownIssueDocs -%} |
| 52 | + <tr> |
| 53 | + <td>{$ issueDoc.id | link(issueDoc.name, issueDoc) $}</td> |
| 54 | + <td> |
| 55 | + {% for issue in issueDoc.knownIssues -%} |
| 56 | + {$ issue | marked $} |
| 57 | + {% endfor -%} |
| 58 | + </td> |
| 59 | + </tr> |
| 60 | + {% endfor -%} |
| 61 | + </table> |
| 62 | +</div> |
| 63 | +{% endif %} |
| 64 | + |
| 65 | + |
| 66 | +<div class="component-breakdown"> |
| 67 | + <h2>Module Components</h2> |
| 68 | + {% for componentGroup in doc.componentGroups %} |
| 69 | + <div> |
| 70 | + <h3 class="component-heading" id="{$ componentGroup.groupType | dashCase $}">{$ componentGroup.groupType | title $}</h3> |
| 71 | + <table class="definition-table"> |
| 72 | + <tr> |
| 73 | + <th>Name</th> |
| 74 | + <th>Description</th> |
| 75 | + </tr> |
| 76 | + {% for component in componentGroup.components %} |
| 77 | + <tr> |
| 78 | + <td>{$ component.id | link(component.name, component) $}</td> |
| 79 | + <td>{$ component.description | firstParagraph | marked $}</td> |
| 80 | + </tr> |
| 81 | + {% endfor %} |
| 82 | + </table> |
| 83 | + </div> |
| 84 | + {% endfor %} |
| 85 | +</div> |
| 86 | + |
| 87 | +{% if doc.usage %} |
| 88 | + <h2>Usage</h2> |
| 89 | + {$ doc.usage | marked $} |
| 90 | +{% endif %} |
| 91 | + |
| 92 | +{% endblock %} |
0 commit comments