main.component.ts 342 Bytes
Newer Older
1
import { Component } from "@angular/core";
Open Source Developer's avatar
others  
Open Source Developer committed
2
import { Router } from "@angular/router";
3 4

@Component({
5 6
    selector: "reg-main",
    templateUrl: "main.component.html"
7
})
8
export default class MainComponent {
Open Source Developer's avatar
others  
Open Source Developer committed
9

10
    constructor(
Open Source Developer's avatar
others  
Open Source Developer committed
11
        private router: Router
12
    ) { }
Open Source Developer's avatar
others  
Open Source Developer committed
13

14 15
    navigatelegal() {
        this.router.navigate(["/legal-info"]);
Open Source Developer's avatar
others  
Open Source Developer committed
16 17 18
    }

}