0.1.0 • Published 4 years ago

ngx-route-highlighter v0.1.0

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

NgxRouteHighlighter

This library was generated with Angular CLI version 8.1.3.

very basic package to add classes to a package when you are on a perticular link

Install

$ npm install ngx-route-highlight --save

Usage

  1. add directive name to desired components
    <li [ngxRouteHighlighter]=''></li>
  2. craete config in ts file
    ngxRouteHighlighterConfig  = new NgxRouteHighlighterConfig();
  3. add links as array
    <li [ngxRouteHighlighter]='ngxRouteHighlighterConfig.getNormalConfig(["/link-1","/link-2","/link-3"])'></li>

you can use * charector to accept any wild card characters in links ie. if you want to match link

category/78965421/product/878564

you can pass

category/*/product/*

it will match link in example.


Build

Run ng build ngx-route-highlighter to build the project. The build artifacts will be stored in the dist/ directory.

0.1.0

4 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago