-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from korel-san/feature-update-to-angular2-alph…
…a-40 Update: updated to angular2 alpha 40
- Loading branch information
Showing
17 changed files
with
126 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
/// <reference path="../tsd.d.ts" /> | ||
|
||
declare module 'ng2-table' { | ||
export * from 'index'; | ||
export = require('index'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
/// <reference path="../../tsd.d.ts" /> | ||
|
||
import { | ||
Directive, LifecycleEvent, | ||
Directive, | ||
EventEmitter, ElementRef, | ||
CORE_DIRECTIVES, NgClass, FORM_DIRECTIVES | ||
} from 'angular2/angular2'; | ||
|
||
@Directive({ | ||
selector: '[ng2-table-paging]', | ||
properties: ['config: ng2TablePaging'], | ||
events: ['tableChanged'], | ||
inputs: ['config: ng2TablePaging'], | ||
outputs: ['tableChanged'], | ||
host: { | ||
'(pagechanged)': 'onChangePage($event)' | ||
} | ||
}) | ||
export class Ng2TablePaging { | ||
public config:any = {}; | ||
public config:boolean = true; | ||
public tableChanged:EventEmitter = new EventEmitter(); | ||
|
||
onChangePage(event) { | ||
Object.assign(this.config, event); | ||
this.tableChanged.next({paging: this.config}); | ||
// Object.assign(this.config, event); | ||
if (this.config) { | ||
this.tableChanged.next({paging: event}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare module 'ng2-bootstrap' { | ||
export class ButtonCheckbox { | ||
} | ||
export var tabs: any; | ||
} |
Oops, something went wrong.