Skip to content
Snippets Groups Projects
app.component.ts 358 B
import {Component, OnInit} from '@angular/core';
import {Router} from '@angular/router';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent implements  OnInit {
  constructor(private router: Router) {
  }

  ngOnInit(): void {
    this.router.navigate(['']);
  }

}