nh

ng-hotjar

![Travis Build Status](https://travis-ci.org/jcamelis/ng-hotjar.svg?branch=master)

Showing:

Popularity

Downloads/wk

69

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.8KB

License

MIT

Type Definitions

Built-In

Tree-Shakeable

Yes?

Categories

Readme

Build Status

Travis Build Status

Install

npm install --save ng-hotjar

Import

import { NgModule } from '@angular/core';

import { HotjarModule } from 'ng-hotjar';

@NgModule({
    ...
    imports: [
        HotjarModule,
        ...
    ]
    ...
})
export class AppModule {}

Instantiate Component

<hotjar tracking-id="xxxxxx" version="6"></hotjar>

Inject Service


import { Component } from '@angular/core';
import { HotjarService } from 'ng-hotjar';

/**
 * App Component
 * Top Level Component
 */
@Component({
    selector: 'my-app',
    template: `
        <div>
            <h1>My Component</h1>
            <button (click)="trigerPoll()">Trigger Poll</button>
        </div>
    `
})
export class AppComponent {

    constructor(hotjarService: HotjarService) {}

    public triggerPoll() {
        this.hotjarService.trigger('myPoll');
    }

}

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100