Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adal.init duplicates app-root #116

Open
Terriuss opened this issue Feb 5, 2019 · 1 comment
Open

adal.init duplicates app-root #116

Terriuss opened this issue Feb 5, 2019 · 1 comment

Comments

@Terriuss
Copy link

Terriuss commented Feb 5, 2019

When using adal.init (for example in the app.compontent.ts) the app-root gets duplicated (see screenshot). (Removing the line adal.init solves the duplicating issue)

import { Component, OnInit } from '@angular/core';
import { AdalService } from 'adal-angular4';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent{
  title = 'TestApp';
  private adalConfig ={
    tenant: 'XXXX',
    clientId: 'XXXX',
    redirectUri: 'http://localhost:4200/',
    postLogoutRedirectUri: 'http://localhost:4200/'
  }
  constructor(private adal : AdalService){
    this.adal.init(this.adalConfig);
  }
}

image

@JACrazy
Copy link

JACrazy commented Mar 25, 2019

What does your app.component.html look like? Perhaps you have <router-outlet> inserted twice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants