ngx-segment-analytics
ngx-segment-analytics copied to clipboard
Calling service.user() or id() doesn't work
Hi guys,
When I inject SegmentService in a component and call this.segment.id() or this.segment.user() it throws following error:
TypeError: this.w.analytics.id is not a function at SegmentService.push../node_modules/ngx-segment-analytics/index.js.SegmentService.id (index.js:201)
Identify() & page() work.
Do I do something wrong, or is it broken?