forked from Mathbonc/Jogos-Epicos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(users): added temporary routes to profile buttons
Showing
2 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
frontend/src/app/profile/components/test/test-components.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
import { Component } from '@angular/core'; | ||
import { Router } from '@angular/router'; | ||
|
||
@Component({ | ||
selector: 'app-test-components', | ||
templateUrl: './test-components.component.html', | ||
styleUrls: ['./test-components.component.scss'] | ||
}) | ||
export class TestComponentsComponent { | ||
public createItem(): void { | ||
|
||
constructor( | ||
private readonly router: Router | ||
) {} | ||
|
||
public goToRoute(route: string) { | ||
this.router.navigate([route]); | ||
} | ||
} |