|
3 | 3 | <head lang="en">
|
4 | 4 | <meta charset="UTF-8">
|
5 | 5 | <title>Charts</title>
|
6 |
| - <link rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.min.css"> |
7 |
| - <link rel="stylesheet" href="../bower_components/rainbow/themes/github.css"> |
| 6 | + <link rel="stylesheet" href="../node_modules/font-awesome/css/font-awesome.min.css"> |
| 7 | + <link rel="stylesheet" href="../node_modules/Rainbow/themes/github.css"> |
8 | 8 | <link href="bootstrap.css" rel="stylesheet">
|
9 | 9 | <link href="app.css" rel="stylesheet">
|
10 | 10 | <style>
|
@@ -115,18 +115,18 @@ <h3>Dependencies</h3>
|
115 | 115 | </ul>
|
116 | 116 | <h3>Files to download</h3>
|
117 | 117 | <p>
|
118 |
| - The easiest is to download with <strong>bower</strong>: |
119 |
| - <pre>bower install angular-chart.js --save</pre> |
120 |
| - Alternatively files can be <a href="https://github.com/jtblin/angular-chart.js">downloaded from Github</a> or via npm. |
| 118 | + The easiest is to download with <strong>npm</strong>: |
| 119 | + <pre>npm install angular-chart.js --save</pre> |
| 120 | + Alternatively files can be <a href="https://github.com/jtblin/angular-chart.js">downloaded from Github</a> or via bower. |
121 | 121 | See <a href="https://github.com/jtblin/angular-chart.js">readme</a> for more information.
|
122 | 122 | </p>
|
123 | 123 | <p>Whichever method you choose the good news is that the overall size is very small:
|
124 | 124 | <5kb for all directives (~1kb with gzip compression!)</p>
|
125 | 125 | <h3>Installation</h3>
|
126 | 126 | <p>You need to include the dependencies in your page:</p>
|
127 |
| - <pre><code><script src="bower_components/angular-chart.js/dist/angular-chart.min.js"></script> |
128 |
| -<script src="bower_components/Chart.js/Chart.min.js"></script> |
129 |
| -<script src="bower_components/angular-chart.js/dist/angular-chart.min.js"></script></code></pre> |
| 127 | + <pre><code><script src="node_modules/angular-chart.js/dist/angular-chart.min.js"></script> |
| 128 | +<script src="node_modules/chart.js/Chart.min.js"></script> |
| 129 | +<script src="node_modules/angular-chart.js/dist/angular-chart.min.js"></script></code></pre> |
130 | 130 | <p>As soon as you've got all the files downloaded and included in your page you just need to declare
|
131 | 131 | a dependency on the <code>chart.js</code> <a href="http://docs.angularjs.org/guide/module">module</a>:<br>
|
132 | 132 | </p><pre><code>angular.module('myModule', ['chart.js']);</code></pre>
|
@@ -523,13 +523,13 @@ <h1>Reactive</h1>
|
523 | 523 | </div>
|
524 | 524 | </footer>
|
525 | 525 |
|
526 |
| - <script src="../bower_components/angular/angular.min.js"></script> |
527 |
| - <script src="../bower_components/Chart.js/dist/Chart.min.js"></script> |
528 |
| - <script src="../bower_components/angular-bootstrap/ui-bootstrap-tpls.min.js"></script> |
529 |
| - <script src="../bower_components/rainbow/js/rainbow.min.js"></script> |
530 |
| - <script src="../bower_components/rainbow/js/language/generic.js"></script> |
531 |
| - <script src="../bower_components/rainbow/js/language/html.js"></script> |
532 |
| - <script src="../bower_components/rainbow/js/language/javascript.js"></script> |
| 526 | + <script src="../node_modules/angular/angular.min.js"></script> |
| 527 | + <script src="../node_modules/chart.js/dist/Chart.min.js"></script> |
| 528 | + <script src="../node_modules/angular-bootstrap/ui-bootstrap-tpls.min.js"></script> |
| 529 | + <script src="../node_modules/Rainbow/js/rainbow.min.js"></script> |
| 530 | + <script src="../node_modules/Rainbow/js/language/generic.js"></script> |
| 531 | + <script src="../node_modules/Rainbow/js/language/html.js"></script> |
| 532 | + <script src="../node_modules/Rainbow/js/language/javascript.js"></script> |
533 | 533 | <script src="../angular-chart.js"></script>
|
534 | 534 | <script src="smoothscroll.min.js"></script>
|
535 | 535 | <script src="app.js"></script>
|
|
0 commit comments