ngx-chess-board
Version:
Chess game component
16 lines (12 loc) • 376 B
text/typescript
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
({
providedIn: 'root',
})
export class NgxChessBoardService {
private componentMethodCallSource = new Subject<any>();
componentMethodCalled$ = this.componentMethodCallSource.asObservable();
reset() {
this.componentMethodCallSource.next();
}
}