Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

376
Views
How to make use of a pendo function in Angular 12+

I have a guide setup in pendo, but I need to include a function that will continue the guide when the user clicks on a different element than the target pendo element.

I found this function:

module.exports = (function wireGuideAdvance(dom, step) {
if (!step) return;
var nextStep = guide.steps[guide.getPositionOfStep(step)];

var advanceOnce = pendo._.once(pendo.onGuideAdvanced);

function checkForElementAndAdvance(e) {
    var checkForNextElement = setInterval(function () {
        if (dom(nextStep.elementPathRule).length) {
            advanceOnce();
            clearInterval(checkForNextElement);
        }
    }, 1000);
}

pendo.attachEvent(document, 'click', checkForElementAndAdvance);

// step wrappable method to clear all event listeners
step.after('teardown', function () {
    pendo.detachEvent(document, 'click', checkForElementAndAdvance);
});

})(pendo.dom, step);

but I do not know how to use this within the Angular app.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!