@nodeart/session-flow
Advanced tools
Comparing version 2.1.9 to 2.1.10
@@ -14,3 +14,3 @@ { | ||
"license": "ISC", | ||
"version": "2.1.9" | ||
"version": "2.1.10" | ||
} |
@@ -16,2 +16,24 @@ import {Injectable, Inject} from "@angular/core"; | ||
* 6. Saves user clicks | ||
* | ||
* To enable `Session Flow` for tracking inject `DAL` and `Session Flow` into root `AppComponent`. If you want to track user click also add HostListener on click: | ||
* ``` | ||
* export class AppComponent { | ||
* | ||
* \@HostListener('click', ['$event']) onClick(e){ | ||
* this.sessionFlow.addUserClick(e); | ||
* } | ||
* | ||
* | ||
* constructor( | ||
* private dal: DbAbstractionLayer, | ||
* private sessionFlow: SessionFlow | ||
* ) { | ||
* } | ||
* | ||
* ngOnInit() { | ||
* this.dal.checkOldSessionFlow(this.sessionFlow.deviceId); | ||
* this.dal.connectSessionFlowToDB(this.sessionFlow, this.sessionFlow.deviceId, this.sessionFlow.sessionId); | ||
* } | ||
* ``` | ||
* | ||
*/ | ||
@@ -18,0 +40,0 @@ @Injectable() |
9835
301