Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit ccc605b

Browse files
Update libs
1 parent 58c820e commit ccc605b

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<a name="2.3.1"></a>
2+
## [2.3.1](https://github.com/peterpeterparker/ionic-swing/compare/v2.3.0...v2.3.1) (2018-08-27)
3+
* **revert**: Revert rename `swing-card`
4+
15
<a name="2.3.0"></a>
26
## [2.3.0](https://github.com/peterpeterparker/ionic-swing/compare/v2.2.3...v2.3.0) (2018-08-27)
37
* **feat**: Rename `swing-card` component to `swing` in order to fix compatibility problem with `Card` from Ionic (Angular error: "More than one component matched on this element.")

src/app/modules/ionic-swing/components/swing.component.ts renamed to src/app/modules/ionic-swing/components/swing-card.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import {SwingStackComponent} from './swing-stack.component';
44
import {Card} from '../interfaces/swing';
55

66
@Component({
7-
selector: '[swing]',
7+
selector: '[swing-card]',
88
template: `
99
<ng-content></ng-content>
1010
`
1111
})
12-
export class SwingComponent implements OnInit {
12+
export class SwingCardComponent implements OnInit {
1313
private card: Card;
1414
constructor(
1515
private elmentRef: ElementRef,

src/app/modules/ionic-swing/components/swing-stack.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {Component, Input,
22
AfterContentInit, EventEmitter } from '@angular/core';
33

4-
import {SwingComponent} from './swing.component';
4+
import {SwingCardComponent} from './swing-card.component';
55

66
import {StackConfig, ThrowEvent, DragEvent} from '../interfaces/swing';
77

@@ -43,14 +43,14 @@ export class SwingStackComponent implements AfterContentInit {
4343
dragmove: EventEmitter<DragEvent> = new EventEmitter<DragEvent>();
4444
dragend: EventEmitter<DragEvent> = new EventEmitter<DragEvent>();
4545

46-
cards: SwingComponent[];
46+
cards: SwingCardComponent[];
4747
stack: any;
4848

4949
constructor() {
5050
this.cards = [];
5151
}
5252

53-
addCard(card: SwingComponent) {
53+
addCard(card: SwingCardComponent) {
5454
this.cards.push(card);
5555
if (this.stack) {
5656
return this.stack.createCard(card.getNativeElement());

src/app/modules/ionic-swing/ionic-swing.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {NgModule} from '@angular/core';
22
import {CommonModule} from '@angular/common';
33

4-
import {SwingComponent} from './components/swing.component';
4+
import {SwingCardComponent} from './components/swing-card.component';
55
import {SwingStackComponent} from './components/swing-stack.component';
66

7-
export * from './components/swing.component';
7+
export * from './components/swing-card.component';
88
export * from './components/swing-stack.component';
99

1010
export * from './interfaces/swing';
@@ -19,11 +19,11 @@ export * from './swing/utilities';
1919
CommonModule
2020
],
2121
declarations: [
22-
SwingComponent,
22+
SwingCardComponent,
2323
SwingStackComponent
2424
],
2525
exports: [
26-
SwingComponent,
26+
SwingCardComponent,
2727
SwingStackComponent
2828
]
2929
})

0 commit comments

Comments
 (0)