diff options
author | Danijel Anđelković <adanijel99@gmail.com> | 2022-04-23 03:01:02 +0200 |
---|---|---|
committer | Danijel Anđelković <adanijel99@gmail.com> | 2022-04-23 03:01:02 +0200 |
commit | 6fe49c5cd6ef20dc477f11dac098e4c18c2584ee (patch) | |
tree | 952de1a3596ca04d17287d8d3593a6020ec2f55d /frontend/src/app/app.component.ts | |
parent | 1177f4b29b616a59af39f4aef11b116f9660357d (diff) |
Dodao korisnička podešavanja za pozadinu.
Diffstat (limited to 'frontend/src/app/app.component.ts')
-rw-r--r-- | frontend/src/app/app.component.ts | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/frontend/src/app/app.component.ts b/frontend/src/app/app.component.ts index 59f247ed..bd9a3b0d 100644 --- a/frontend/src/app/app.component.ts +++ b/frontend/src/app/app.component.ts @@ -6,14 +6,16 @@ import { AuthService } from './_services/auth.service'; import { SignalRService } from './_services/signal-r.service'; import { HttpClient } from '@angular/common/http'; import Shared from './Shared'; +import { CookieService } from 'ngx-cookie-service'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent implements OnInit { + constructor(private router: Router, private titleService: Title, private authService: AuthService, private signalRService: SignalRService, private http: HttpClient) { - constructor(private router: Router, private titleService: Title,private authService:AuthService,private signalRService:SignalRService,private http:HttpClient) { } + } ngOnInit() { this.router.events @@ -36,12 +38,11 @@ export class AppComponent implements OnInit { this.titleService.setTitle(`${title} - Igrannonica`); } }); - if(!this.authService.isAuthenticated()) - { - this.authService.addGuestToken(); - } - this.signalRService.startConnection(); - //this.startHttpRequest(); + if (!this.authService.isAuthenticated()) { + this.authService.addGuestToken(); + } + this.signalRService.startConnection(); + //this.startHttpRequest(); |