File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
#Changelog
2
2
3
+ ## 0.4.2 (2016-05-08)
4
+
5
+ Breaking changes:
6
+
7
+ - update angular library to 2.0.0-rc.0
8
+
9
+ #Changelog
10
+
3
11
## 0.3.0 (2016-05-08)
4
12
5
13
Breaking changes:
Original file line number Diff line number Diff line change 1
- # DataTable component for Angular2
1
+ # Table component with sorting and pagination for Angular2
2
2
[ ![ npm version] ( https://badge.fury.io/js/angular2-datatable.svg )] ( https://badge.fury.io/js/angular2-datatable )
3
3
[ ![ Build Status] ( https://travis-ci.org/mariuszfoltak/angular2-datatable.svg?branch=master )] ( https://travis-ci.org/mariuszfoltak/angular2-datatable )
4
4
[ ![ Code Climate] ( https://codeclimate.com/github/mariuszfoltak/angular2-datatable/badges/gpa.svg )] ( https://codeclimate.com/github/mariuszfoltak/angular2-datatable )
@@ -12,14 +12,14 @@ Check [live demo](http://plnkr.co/edit/tINlfy?p=preview) in plunker
12
12
## Installation
13
13
14
14
```
15
- npm -i angular2-datatable
15
+ npm i -S angular2-datatable
16
16
```
17
17
18
18
## Usage example
19
19
20
20
app.ts
21
21
``` typescript
22
- import {Component } from ' angular2 /core' ;
22
+ import {Component } from ' @angular /core' ;
23
23
import {DataTableDirectives } from ' angular2-datatable/datatable' ;
24
24
25
25
@Component ({
@@ -52,7 +52,7 @@ app.html
52
52
</tr >
53
53
</thead >
54
54
<tbody >
55
- <tr *ngFor =" # item of mf.data" >
55
+ <tr *ngFor =" let item of mf.data" >
56
56
<td >{{item.name}}</td >
57
57
<td >{{item.email}}</td >
58
58
<td class =" text-right" >{{item.age}}</td >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " angular2-datatable" ,
3
- "version" : " 0.4.1 " ,
3
+ "version" : " 0.4.2 " ,
4
4
"description" : " DataTable component for Angular2 framework" ,
5
5
"main" : " datatable" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments