Refactored title service
All checks were successful
Gitea/swiss-client/pipeline/head This commit looks good
All checks were successful
Gitea/swiss-client/pipeline/head This commit looks good
This commit is contained in:
@@ -6,7 +6,6 @@ import {MatAnchor} from "@angular/material/button";
|
||||
import {MatIcon} from "@angular/material/icon";
|
||||
import {MatCard, MatCardContent} from "@angular/material/card";
|
||||
import {FullNamePipe} from "../../pipes/fullname-pipe";
|
||||
import {TitleService} from "../../service/title.service";
|
||||
import {
|
||||
MatCell,
|
||||
MatCellDef,
|
||||
@@ -42,13 +41,11 @@ export class PlayerListComponent implements AfterViewInit {
|
||||
@ViewChild(MatSort) sort: MatSort;
|
||||
|
||||
constructor(
|
||||
private titleService: TitleService,
|
||||
private playerService: PlayerService,
|
||||
private fullNamePipe: FullNamePipe) {
|
||||
}
|
||||
|
||||
ngAfterViewInit() {
|
||||
this.titleService.setTitle("Spelers");
|
||||
this.playerService.getAll().subscribe(data => {
|
||||
this.players = data;
|
||||
this.dataSource = new MatTableDataSource(this.players);
|
||||
|
||||
Reference in New Issue
Block a user