25 lines
487 B
TypeScript
25 lines
487 B
TypeScript
import { Component, OnInit } from '@angular/core';
|
|
import { Router } from '@angular/router';
|
|
|
|
@Component({
|
|
selector: 'app-services',
|
|
templateUrl: './services.component.html',
|
|
styleUrls: ['./services.component.scss']
|
|
})
|
|
export class ServicesComponent implements OnInit {
|
|
|
|
constructor(private router: Router) { }
|
|
|
|
ngOnInit(): void {
|
|
}
|
|
|
|
addService() {
|
|
this.router.navigate(['services', 'new']);
|
|
}
|
|
|
|
goToStats() {
|
|
this.router.navigate(['stats', 'services']);
|
|
}
|
|
|
|
}
|