Giter Club home page Giter Club logo

Comments (3)

isaacplmann avatar isaacplmann commented on August 16, 2024

So you want the last tourAnchor of the same name to overwrite any previous ones?

You could probably get into some weird non-deterministic use cases with that feature. i.e. the last tourAnchor would vary depending on the order components were rendered.

What's the motivation for this feature request?

from ngx-tour.

 avatar commented on August 16, 2024

This would actually help with a responsive/adaptive UI also when the browser is resized and element get removed and re-added somewhere else I also get this error.

What is the best way to avoid this error from happening?

Do I have to unregister each anchor in each component when ngOnDestroy is called and so they don't throw errors when added back in again?

from ngx-tour.

isaacplmann avatar isaacplmann commented on August 16, 2024

The tourAnchor directive automatically unregisters itself in the ngOnDestroy method. You'll only get this error if the ngOnDestroy method of the first anchor happens after the ngOnInit method of the second anchor (with the same anchorId).

@damo1884 making this change would be a breaking change. Want to make a branch and work on this feature?

from ngx-tour.

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.