ng-tournament-tree
Version:
Tournament-Tree render components for Angular. Includes single- and double-elimination trees. You can also customize how a match is displayed by providing your own component.
12 lines (11 loc) • 335 B
TypeScript
export interface NgttTournament {
rounds: NgttRound[];
}
export interface NgttRound {
/**
* The type determines where in which branch to place a match.
* SingleElimination-Trees only consist of a winnerbracket and a final
*/
type: 'Winnerbracket' | 'Loserbracket' | 'Final';
matches: any[];
}