Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NSRouterLinkActive

Hierarchy

  • NSRouterLinkActive

Implements

  • OnChanges
  • OnDestroy
  • AfterContentInit

Index

Constructors

constructor

  • new NSRouterLinkActive(router: Router, element: ElementRef, renderer: Renderer): NSRouterLinkActive
  • Parameters

    • router: Router
    • element: ElementRef
    • renderer: Renderer

    Returns NSRouterLinkActive

Properties

Private active

active: boolean

Private classes

classes: string[]

Private element

element: ElementRef

links

links: QueryList<NSRouterLink>

Private renderer

renderer: Renderer

Private router

router: Router

Private subscription

subscription: Subscription

Accessors

isActive

isActive:

nsRouterLinkActive

nsRouterLinkActive:

Methods

Private hasActiveLinks

  • hasActiveLinks(): boolean
  • Returns boolean

Private isLinkActive

  • isLinkActive(router: Router): function
  • Parameters

    • router: Router

    Returns function

ngAfterContentInit

  • ngAfterContentInit(): void
  • Returns void

ngOnChanges

  • ngOnChanges(_: __type): any
  • Parameters

    • _: __type

    Returns any

ngOnDestroy

  • ngOnDestroy(): any
  • Returns any

Private reduceList

  • reduceList(currentUrlTree: UrlTree, q: QueryList<any>): boolean
  • Parameters

    • currentUrlTree: UrlTree
    • q: QueryList<any>

    Returns boolean

Private update

  • update(): void
  • Returns void

Object literals

nsRouterLinkActiveOptions

nsRouterLinkActiveOptions: object

exact

exact: false

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method