Skip to content

Navbar color-on-scroll bug when adding ngIf #7

@Nexmind

Description

@Nexmind

Hello !
I have somes issues with the color-on-scroll attribute.

I have start from the example in the Paper Kit project, and modify three things in the component:

  1. remove nav-down class in the nav-bar
  2. modify the color-on-scroll attribute and set it to 20 (no matter the value i put, the color change always at the same pixel)
  3. create a navbar service (because i must deal with 2 navbar) and add a *ngIf="!nav.visible" in my html on my nav tag

The real problem is when I put this *ngIf, the color change doesnt work anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions