Giter Club home page Giter Club logo

Comments (7)

wbhob avatar wbhob commented on July 29, 2024

I'll work on this today, thanks for the request!

from ng-intercom.

wbhob avatar wbhob commented on July 29, 2024

Released 1.0.0-beta.1 with a new option updateOnRouterChange. Set it to true to automatically handle router events.

from ng-intercom.

scott-wyatt avatar scott-wyatt commented on July 29, 2024

Just a heads up, you nessecarily don't have to log to intercom on a route change in a spa, they watch window.location. Unless you are bypassing the angular routers native functionality to perhaps add something like query strings or something using the navigator and ignoring the history API. Still a cool feature, but it can double log an event, so it's best to use with caution.

from ng-intercom.

flore2003 avatar flore2003 commented on July 29, 2024

@scott-wyatt Could you point me to where this is stated? I've looked through the documentation but could not find mention of this behavior.

from ng-intercom.

wbhob avatar wbhob commented on July 29, 2024

Good note @scott-wyatt, can you add that to the docs?

from ng-intercom.

scott-wyatt avatar scott-wyatt commented on July 29, 2024

@flore2003 I was just going through their docs and it says it does require you to send an Itercom.update, which is odd, because I don't do that but still see the current page in intercom despite not doing that in my sample apps. In the plugins code, it looks like it is listening for changes in the browser history API, so it would stand to reason that they are listening to it, but that it is not documented, not their preferred method, or that their documentation may be out of date?

from ng-intercom.

wbhob avatar wbhob commented on July 29, 2024

I think this is just a safe option for those who want to follow the API docs. This is definitely a feature I like having.

from ng-intercom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.