GithubHelp home page GithubHelp logo

Comments (5)

vidakovic avatar vidakovic commented on June 12, 2024

Here the same.

from angular-tour.

kyranjamie avatar kyranjamie commented on June 12, 2024

This is a scoping issue. I've ran into the same problem trying to integrate this with a moderate complexity app with some nested directives.

It will work fine for directives that do not have isolated scopes. See demo here.

Maybe the logic should be moved into a service so we can use it anywhere easier?

from angular-tour.

kennethlynne avatar kennethlynne commented on June 12, 2024

Aww. This was a showstopper..

from angular-tour.

kennethlynne avatar kennethlynne commented on June 12, 2024

Figured his one out: You can create multiple tours, and set their step to -1 to hide all but one. Then in the one tours complete callback set the next tours step to 1 to start that part. This makes it possible to have multi-page tours also.

from angular-tour.

yhnavein avatar yhnavein commented on June 12, 2024

Quite late, but maybe still useful: check out my PR: #28. I've introduced virtual steps, which allow you to create tour steps regardless of the scopes at all. (or ng-include, directives, etc)
I was making these changes for angular-tour to use it in a very big and complicated angular app.

from angular-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.