- add extra chartjs.module - add extra diagram-view component for binding properties to chartjs chart
19 lines
318 B
TypeScript
19 lines
318 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { Router } from '@angular/router';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class AppRouterService {
|
|
|
|
private router: Router
|
|
|
|
constructor(router: Router) {
|
|
this.router = router;
|
|
}
|
|
|
|
public toDiagram() {
|
|
this.router.navigate(['diagram'])
|
|
}
|
|
|
|
}
|