# ngkit.hl

> Context highlighting for Angular

Latest version **0.0.1** (published 2015-06-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install ngkit.hl
pnpm add ngkit.hl
yarn add ngkit.hl
bun add ngkit.hl
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-06-24 |
| First published | 2015-06-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Boris Okunskiy |
| Maintainers | inca |
| Keywords | angular, ui |

## Links

- npm: https://www.npmjs.com/package/ngkit.hl
- Repository: git@github.com:inca/ngkit
- Homepage: https://github.com/inca/ngkit
- Issues: https://github.com/inca/ngkit/issues
- npm.io page: https://npm.io/package/ngkit.hl

## Recent versions

- 0.0.1 (latest) — 2015-06-24

## README

# ngKit context highlight

Super-simple context highlighter: adds `active` class to specified selector.

```html
<nav>
  <a id="page-one" href="/one">One</a>
  <a id="page-two" href="/two">Two</a>
  <a id="page-three" href="/three">Three</a>
</nav>

<section ui-hl="#page-one">
  <h1>One</h1>
</section>
```

When the element is destroyed, the class is removed. Additionally you can
specify another class using `ui-hl-class` attribute.

This solution has proven extremely useful in static pages assembly
with dynamic navigations. We've been doing that for years, yeah.

## Usage

Add `ui-hl` directive to your Angular module directly:

```js
var app = angular.module('myApp', []);

require('ngkit.hl')(app);
```

Note: ngKit requires Browserify.

## License

ISC / Boris Okunskiy

---
_Source: https://npm.io/package/ngkit.hl · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
