Component wrapping the chessboardJS library. See online documentation.
For more information about the wrapped library, and more details about parameters, methods and events, see ChessboardJS official documentation
npm i ng2-chessboard --save
<ng2-chessboard [(position)]="position"></ng2-chessboard>
<ng2-chessboard #board
[(position)]="position"
[orientation]="orientation"
[showNotation]="showNotation"
[draggable]="draggable"
[animation]="animation"
(change)="onChange($event)"
(dragStart)="onDragStart($event)"
(dragMove)="onDragMove($event)"
(drop)="onDrop($event)"
(snapbackEnd)="onSnapbackEnd($event)"
(moveEnd)="onMoveEnd($event)">
</ng2-chessboard>
Input()/Output()
position
(String
orObject
)Input()
orientation
(Boolean
)Input()
showNotation
(Boolean
)Input()
draggable
(Boolean
)Input()
dropOffBoard
(String
)Input()
pieceTheme
(String
orFunction
)Input()
moveSpeed
(Number
)Input()
snapbackSpeed
(Number
)Input()
snapSpeed
(Number
)Input()
sparePieces
(Boolean
)
clear()
move(String)
Output()
change
Output()
dragStart
Output()
dragMove
Output()
drop
Output()
snapbackEnd
Output()
moveEnd