GithubHelp home page GithubHelp logo

Two tabs about ui-router HOT 4 CLOSED

coli avatar coli commented on August 24, 2024
Two tabs

from ui-router.

Comments (4)

timkindberg avatar timkindberg commented on August 24, 2024

It is supported in a way, though you cannot have two views tracking their own states independently you can have one state populate multiple views at various state levels.

Check out the Multiple Named Views section in the guide: https://github.com/angular-ui/ui-router/wiki/Multiple-Named-Views

from ui-router.

ksperling avatar ksperling commented on August 24, 2024

Essentially you'd need "orthogonal regions" in the state chart / state machine to support this sort of thing. Maybe something we can investigate in v2, but the way states relate to both ui-view directives and to URLs would be quite a lot more complicated in such a model.

from ui-router.

coli avatar coli commented on August 24, 2024

Yeah, I can't think of much either. Another case I though about was: navigational views works really well, eg: display a single selected tab. But if I turn them non-navigational, eg: display all tabs at once (portlets), then it's unclear how it'll work. Maybe another directive for that.

from ui-router.

ksperling avatar ksperling commented on August 24, 2024

I think for that sort of stuff to work you'd have to reliquish any control over what the URLs look like, and just let the framework make them up. They'd probably end up being quite big and ugly (ASP.net view state or the URLs generated by Wicket come to mind).

from ui-router.

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.