This repository was archived by the owner on Aug 24, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed
src/app/modules/ionic-swing Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change
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
+
1
5
<a name =" 2.3.0 " ></a >
2
6
## [ 2.3.0] ( https://github.com/peterpeterparker/ionic-swing/compare/v2.2.3...v2.3.0 ) (2018-08-27)
3
7
* ** 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.")
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ import {SwingStackComponent} from './swing-stack.component';
4
4
import { Card } from '../interfaces/swing' ;
5
5
6
6
@Component ( {
7
- selector : '[swing]' ,
7
+ selector : '[swing-card ]' ,
8
8
template : `
9
9
<ng-content></ng-content>
10
10
`
11
11
} )
12
- export class SwingComponent implements OnInit {
12
+ export class SwingCardComponent implements OnInit {
13
13
private card : Card ;
14
14
constructor (
15
15
private elmentRef : ElementRef ,
Original file line number Diff line number Diff line change 1
1
import { Component , Input ,
2
2
AfterContentInit , EventEmitter } from '@angular/core' ;
3
3
4
- import { SwingComponent } from './swing.component' ;
4
+ import { SwingCardComponent } from './swing-card .component' ;
5
5
6
6
import { StackConfig , ThrowEvent , DragEvent } from '../interfaces/swing' ;
7
7
@@ -43,14 +43,14 @@ export class SwingStackComponent implements AfterContentInit {
43
43
dragmove : EventEmitter < DragEvent > = new EventEmitter < DragEvent > ( ) ;
44
44
dragend : EventEmitter < DragEvent > = new EventEmitter < DragEvent > ( ) ;
45
45
46
- cards : SwingComponent [ ] ;
46
+ cards : SwingCardComponent [ ] ;
47
47
stack : any ;
48
48
49
49
constructor ( ) {
50
50
this . cards = [ ] ;
51
51
}
52
52
53
- addCard ( card : SwingComponent ) {
53
+ addCard ( card : SwingCardComponent ) {
54
54
this . cards . push ( card ) ;
55
55
if ( this . stack ) {
56
56
return this . stack . createCard ( card . getNativeElement ( ) ) ;
Original file line number Diff line number Diff line change 1
1
import { NgModule } from '@angular/core' ;
2
2
import { CommonModule } from '@angular/common' ;
3
3
4
- import { SwingComponent } from './components/swing.component' ;
4
+ import { SwingCardComponent } from './components/swing-card .component' ;
5
5
import { SwingStackComponent } from './components/swing-stack.component' ;
6
6
7
- export * from './components/swing.component' ;
7
+ export * from './components/swing-card .component' ;
8
8
export * from './components/swing-stack.component' ;
9
9
10
10
export * from './interfaces/swing' ;
@@ -19,11 +19,11 @@ export * from './swing/utilities';
19
19
CommonModule
20
20
] ,
21
21
declarations : [
22
- SwingComponent ,
22
+ SwingCardComponent ,
23
23
SwingStackComponent
24
24
] ,
25
25
exports : [
26
- SwingComponent ,
26
+ SwingCardComponent ,
27
27
SwingStackComponent
28
28
]
29
29
} )
You can’t perform that action at this time.
0 commit comments