blob: 2cdf7ae3f30d64f5d48797088e33e7fd3be22ab5 (
plain) (
blame)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 | import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { CookieService } from 'ngx-cookie-service';
@Component({
  selector: 'app-navbar',
  templateUrl: './navbar.component.html',
  styleUrls: ['./navbar.component.css']
})
export class NavbarComponent implements OnInit {
  constructor(private router:Router, private cookie:CookieService) { }
  ngOnInit(): void {
  }
  pocetna()
  {
    this.router.navigate(["/homepage"])
  }
  dodaj()
  {
    this.router.navigate(["/newLaptop"])
  }
}
 |