0

It works fine though on regular links - /press/media, but not with anchor links - /press/media#152. how will I include both regular and anchor links or add multiple url with the existing code below?

in app.component.ts

 this.router.events
    .subscribe((event) => {
      if (event instanceof NavigationEnd) {
        this.headerFooter = (event.url !== '/press/media')
      }
    });

hope someone can help me.

2
  • Hey there, this question already has an answer here. Hope this helps Commented Jun 3, 2020 at 12:16
  • hey just checked that, it s not the answer im lookin for. Commented Jun 3, 2020 at 12:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.