File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 18
18
"prefix" : " app" ,
19
19
"mobile" : false ,
20
20
"styles" : [
21
- " styles.css"
21
+ " styles.css" ,
22
+ " ../node_modules/bootstrap/dist/css/bootstrap.min.css" ,
23
+ " ../node_modules/bootstrap/dist/css/bootstrap-theme.min.css" ,
24
+ " ../node_modules/datatables.net-bs/css/dataTables.bootstrap.css" ,
25
+ " ../node_modules/datatables.net-select-bs/css/select.bootstrap.css"
22
26
],
23
27
"scripts" : [],
24
28
"environments" : {
Original file line number Diff line number Diff line change 21
21
"@angular/platform-browser" : " ^2.3.1" ,
22
22
"@angular/platform-browser-dynamic" : " ^2.3.1" ,
23
23
"@angular/router" : " ^3.3.1" ,
24
+ "bootstrap" : " ^3.3.7" ,
24
25
"core-js" : " ^2.4.1" ,
26
+ "datatables.net" : " ^2.1.1" ,
27
+ "datatables.net-bs" : " ^2.1.1" ,
28
+ "datatables.net-select" : " ^1.2.1" ,
29
+ "datatables.net-select-bs" : " ^1.2.1" ,
30
+ "jquery" : " ^3.1.1" ,
25
31
"rxjs" : " ^5.0.1" ,
26
32
"ts-helpers" : " ^1.1.1" ,
27
33
"zone.js" : " ^0.7.2"
Original file line number Diff line number Diff line change 1
1
import { Component , OnInit } from '@angular/core' ;
2
+ import * as $ from 'jquery' ;
3
+ import 'datatables.net'
2
4
3
5
@Component ( {
4
6
selector : 'app-datatables' ,
@@ -32,6 +34,7 @@ export class DatatablesComponent implements OnInit {
32
34
}
33
35
34
36
private initDatatable ( ) : void {
37
+ debugger
35
38
let exampleId : any = $ ( '#example' ) ;
36
39
this . tableWidget = exampleId . DataTable ( {
37
40
select : true
Original file line number Diff line number Diff line change 6
6
< base href ="/ ">
7
7
8
8
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
9
+ <!--
9
10
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs-3.3.7/jq-2.2.4/dt-1.10.13/b-1.2.4/b-colvis-1.2.4/b-html5-1.2.4/cr-1.3.2/fc-3.2.2/fh-3.1.2/r-2.1.0/rr-1.2.0/sc-1.4.2/se-1.2.0/datatables.min.css"/>
10
11
11
12
<script type="text/javascript" src="https://cdn.datatables.net/v/bs-3.3.7/jq-2.2.4/dt-1.10.13/b-1.2.4/b-colvis-1.2.4/b-html5-1.2.4/cr-1.3.2/fc-3.2.2/fh-3.1.2/r-2.1.0/rr-1.2.0/sc-1.4.2/se-1.2.0/datatables.min.js"></script>
13
+ -->
12
14
</ head >
13
15
< body >
14
16
< app-root > Loading...</ app-root >
You can’t perform that action at this time.
0 commit comments