Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 1dd2a3d

Browse files
committed
Update documentation about including JS file
1 parent da14e29 commit 1dd2a3d

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ bower install angular-datatables
4444
Include the JS file in your `index.html` file:
4545

4646
```html
47+
<script src="jquery.min.js"></script>
48+
<script src="jquery.dataTables.min.js"></script>
49+
<script src="angular.min.js"></script>
4750
<script src="angular-datatables.min.js"></script>
4851
```
4952

50-
**IMPORTANT**: You must include the JS **AFTER** `jQuery` and `DataTables`!
53+
**IMPORTANT**: You must include the JS in this order. AngularJS **MUST** use jQuery and not its jqLite!
5154

5255
If you want the `Twitter Bootstrap` support, then add the CSS file:
5356

demo/partials/getting_started.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,14 @@ <h3>Installation</h3>
4242
Include the JS file in your <code>index.html</code> file:
4343
<br />
4444
</p>
45-
<div class="highlight">
46-
<pre><code class="html"><span class="nt">&lt;script </span><span class="na">src=</span><span class="s">"angular-datatables.min.js"</span><span class="nt">&gt;&lt;/script&gt;</span></code></pre>
47-
</div>
45+
<div hljs language="html">
46+
<script src="jquery.min.js"></script>
47+
<script src="jquery.dataTables.min.js"></script>
48+
<script src="angular.min.js"></script>
49+
<script src="angular-datatables.min.js"></script>
50+
</div>
4851
<p class="text-danger">
49-
<i class="fa fa-warning"></i>&nbsp;You must include the JS file <strong>AFTER</strong>&nbsp;<code>jQuery</code> and <code>DataTables</code>!
52+
<i class="fa fa-warning"></i>&nbsp;You must include the JS file in this order. AngularJS <strong>MUST</strong> use <code>jQuery</code> and not its <code>jqLite</code>!
5053
</p>
5154
<p>
5255
Declare dependencies on your module app like this:

0 commit comments

Comments
 (0)