Skip to content

Commit

Permalink
feat - upgrade to angular 2 and expose an NgModule
Browse files Browse the repository at this point in the history
  • Loading branch information
ksachdeva committed Sep 16, 2016
1 parent 4a5b35d commit d6a7389
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 14 deletions.
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular2-swing",
"version": "0.8.0",
"version": "0.9.1",
"description": "Angular 2 Component for Swing (Tinder style cards)",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand All @@ -19,12 +19,11 @@
"swing": "^3.0.3"
},
"devDependencies": {
"@angular/core": "2.0.0-rc.5",
"@angular/common": "2.0.0-rc.5",
"es6-promise": "^3.1.2",
"es6-shim": "^0.33.3",
"es7-reflect-metadata": "^1.6.0",
"rxjs": "5.0.0-beta.6",
"zone.js": "0.6.12"
"@angular/core": "2.0.0",
"@angular/common": "2.0.0",
"core-js": "^2.4.1",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.12",
"zone.js": "^0.6.23"
}
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
export * from './swing-stack-component';
export * from './swing-card-component';
export * from './swing';
export * from './swing.module';
3 changes: 0 additions & 3 deletions src/swing-stack-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ const Swing = require('swing');
template: `
<ng-content></ng-content>
`,
inputs: [
'stackConfig'
],
outputs: [
'throwout',
'throwoutend',
Expand Down
12 changes: 12 additions & 0 deletions src/swing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { SwingStackComponent } from './swing-stack-component';
import { SwingCardComponent } from './swing-card-component';

@NgModule({
imports: [CommonModule],
declarations: [SwingStackComponent, SwingCardComponent],
exports: [SwingCardComponent, SwingStackComponent]
})
export class SwingModule { }
4 changes: 1 addition & 3 deletions typings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"name": "client",
"dependencies": {},
"globalDependencies": {
"es6-shim": "registry:dt/es6-shim#0.31.2+20160602141504"
"core-js": "registry:dt/core-js#0.0.0+20160725163759"
}
}

0 comments on commit d6a7389

Please sign in to comment.