# ng-horizontal-timeline

> A directive to help create a horizontal timeline

Latest version **0.1.0** (published 2017-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng-horizontal-timeline
pnpm add ng-horizontal-timeline
yarn add ng-horizontal-timeline
bun add ng-horizontal-timeline
```

## 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.1.0 |
| Published | 2017-11-27 |
| First published | 2017-11-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+10 in 1 direct dependencies) |
| Install scripts | no |
| Author | Johnny Santos |
| Maintainers | johnnyasantoss |
| Keywords | timeline, ng, angularjs, horizontal, timeline, horizontal, directive |

## Links

- npm: https://www.npmjs.com/package/ng-horizontal-timeline
- npm.io page: https://npm.io/package/ng-horizontal-timeline

## Dependencies (2)

- [jquery](https://npm.io/package/jquery.md) ^3.2.1
- [angular](https://npm.io/package/angular.md) ^1.6.6

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [btrz-health-check](https://npm.io/package/btrz-health-check.md) — 474 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2017-11-27

## README

# ng-horizontal-timeline

AngularJS component to help create a horizontal timeline with css animations.

### Usage

- Add it to your module
```js
angular
  .module('myModule', ['ng-horizontal-timeline']) //import the component module
  .controller('myController', ['$log', function($log) {
    var vm = this;
    $log.debug('Hello world!');
    vm.events = [
      {
        text: 'test1'
      },
      {
        text: "test2"
      }
    ];
    
    vm.index = 2;
    
    vm.logClickEvent = function() {
      $log.debug('Event clicked: ', vm.events[vm.index]);
    };
    
    return vm;
  }]);
```
- Add the component to your template
```html
<!DOCTYPE html>
<html ng-app="myModule" ng-strict-di>
<body ng-controller="myController as vm">

<h-timeline events="vm.events" event-click="vm.logClickEvent()" selected-index="vm.index"></h-timeline>

</body>
</html>
```

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