Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Metronic


I tried, but this time the home page was not loaded at all. If we call this template directly without using open Id, there is no problem, it works with the menu link, but when I use openId conncet, the menu links do not open or close at all, other buttons and functions do not work either.

isLoggedIn(): boolean {
return this.oauthService.hasValidAccessToken();
}

login() {
if (!this.oauthService.hasValidAccessToken()) {
// EÄŸer geçerli bir eriÅŸim belirteci yoksa, kimlik doÄŸrulama akışını baÅŸlat

this.oauthService.initImplicitFlow();


} else {
// EÄŸer geçerli bir eriÅŸim belirteci varsa, kullanıcıyı belirlediÄŸiniz sayfaya yönlendir
/* this.router.navigate(['/']);*/
// Sayfayı yenile

}
}

logout(): void {
if (this.oauthService.hasValidAccessToken()) {
this.oauthService.logOut();
localStorage.removeItem('accessToken');
this.router.navigate(['/']); // BaÅŸlangıç sayfasına yönlendir
}

// Oturumu kapat ve kullanıcıyı baÅŸlangıç sayfasına yönlendir

} app.component.ts

{
path: 'home',
component:HomeComponent
},
{
path: "table",
component:TableComponent
},
{
path: "list",
component:ListComponent
},

{ path: 'firmadetail/:firmaKodu', component: FirmaComponent },
{
path: 'list/firmadetail/:firmaKodu',
component:FirmaComponent
},
{
path: 'onay',
component:ApprovalComponent
},

{ path: 'firmdetail/:firmaKodu', component: FirmEditComponent },
]; routing




<div *ngIf="!isLoggedIn()">
<h1>HoÅŸ Geldiniz!</h1>
<p>Burada oturum açabilirsiniz.</p>
<button (click)="login()">Oturum Aç</button>

</div>
<div *ngIf="isLoggedIn()">
<app-home></app-home>


</div>


app.component.html


<app-business-partners-administrator></app-business-partners-administrator> home.componnet.html


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

Sorry for the delay in response. Please refer to my last reply to this related question.

Link

Thank you


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(